-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.js
43 lines (41 loc) · 1.17 KB
/
app.config.js
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
35
36
37
38
39
40
41
42
43
// The sole purpose of this file is to add our sensitive
// environment variables to our app.json in a secure way.
// The reason we're not ditching our app.json entirely is that:
// Static configs can be automatically updated with CLI tools,
// whereas dynamic configs must be manually updated by the developer.
export default ({ config }) => {
return {
...config,
ios: {
...config.ios,
config: {
googleSignIn: {
reservedClientId: process.env.IOS_REVERSED_CLIENT_ID,
},
},
},
android: {
...config.android,
config: {
googleSignIn: {
certificateHash: process.env.ANDROID_CERTIFICATE_HASH,
},
},
},
web: {
...config.web,
config: {
firebase: {
apiKey: process.env.API_KEY,
authDomain: process.env.AUTH_DOMAIN,
databaseURL: process.env.DATABASE_URL,
projectId: process.env.PROJECT_ID,
storageBucket: process.env.STORAGE_BUCKET,
messagingSenderId: process.env.MESSAGING_SENDER_ID,
appId: process.env.APP_ID,
measurementId: process.env.MEASUREMENT_ID,
},
},
},
};
};