-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.ts
34 lines (31 loc) · 943 Bytes
/
app.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { ConfigContext, ExpoConfig } from "@expo/config"
/**
* Use ts-node here so we can use TypeScript for our Config Plugins
* and not have to compile them to JavaScript
*/
require("ts-node/register")
/**
* @param config ExpoConfig coming from the static config app.json if it exists
*
* You can read more about Expo's Configuration Resolution Rules here:
* https://docs.expo.dev/workflow/configuration/#configuration-resolution-rules
*/
module.exports = ({ config }: ConfigContext): Partial<ExpoConfig> => {
const existingPlugins = config.plugins ?? []
return {
...config,
plugins: [
...existingPlugins,
'expo-localization',
'expo-sqlite',
'expo-notifications',
'expo-build-properties',
],
extra: {
...config.extra,
BREEZ_API_KEY: process.env.BREEZ_API_KEY,
GEMINI_API_KEY: process.env.GEMINI_API_KEY,
GROQ_API_KEY: process.env.GROQ_API_KEY,
},
}
}