-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathenv.js.example
47 lines (45 loc) · 1.13 KB
/
env.js.example
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
44
45
46
47
const version = '1.2.0';
const apiUrls = {
production: 'http://api.pma2020.org',
staging: 'http://api-staging.pma2020.org',
development: 'http://10.253.151.184:5000' // Should try to make static across multiple devleopment environments
};
const envSrc = {
developmentAll: {
api_url: apiUrls['development'],
environment: 'development',
version: version
},
developmentWithProductionApi: {
api_url: apiUrls['production'],
environment: 'development',
version: version
},
developmentWithStagingApi: {
api_url: apiUrls['staging'],
environment: 'development',
version: version
},
productionAll: {
api_url: apiUrls['production'],
environment: 'production',
version: version
},
productionWithStagingApi: {
api_url: apiUrls['staging'],
environment: 'production',
version: version
},
stagingAll: {
api_url: apiUrls['staging'],
environment: 'staging',
version: version
},
stagingWithProductionApi: {
api_url: apiUrls['production'],
environment: 'staging',
version: version
},
};
const env = envSrc.developmentWithProductionApi;
export default env;