-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathapp.config.js
More file actions
28 lines (27 loc) · 810 Bytes
/
app.config.js
File metadata and controls
28 lines (27 loc) · 810 Bytes
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
import 'dotenv/config';
module.exports = ({ config }) => {
return {
...config,
ios: {
...config.ios,
googleServicesFile: process.env.GOOGLE_SERVICE_INFO
},
android: {
...config.android,
googleServicesFile: process.env.GOOGLE_SERVICE_JSON
},
extra: {
...config.extra,
firebase: {
apiKey: process.env.FIREBASE_API_KEY,
authDomain: process.env.FIREBASE_AUTH_DOMAIN,
projectId: process.env.FIREBASE_PROJECT_ID,
storageBucket: process.env.FIREBASE_STORAGE_BUCKET,
messagingSenderId: process.env.FIREBASE_MESSAGING_SENDER_ID,
appId: process.env.FIREBASE_APP_ID,
measurementId: process.env.FIREBASE_MEASUREMENT_ID,
},
googleAuthClientId: process.env.GOOGLE_AUTH_CLIENT_ID
}
};
};