forked from CrossRef/mdt-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployConfig.js
39 lines (34 loc) · 893 Bytes
/
deployConfig.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
var babelCompatibility = {
presets: ['env', 'stage-0', "react"],
plugins: ['transform-decorators-legacy', 'transform-runtime', 'system-import-transformer']
}
var babelDev = {
presets: ["react"],
plugins: [
'transform-runtime',
'transform-decorators-legacy',
'transform-do-expressions',
'transform-object-rest-spread',
'transform-class-properties',
'transform-es2015-modules-commonjs'
]
}
var presets = {
production: {
baseUrl: '/metadatamanager/',
apiBaseUrl: 'https://apps.crossref.org/mdt/v1',
babelConfig: babelCompatibility
},
staging: {
baseUrl: '/mmstaging/',
apiBaseUrl: 'https://apps-staging.crossref.org/mdt',
babelConfig: babelDev
},
develop: {
baseUrl: '/mmstaging/',
apiBaseUrl: 'http://localhost:8080/mdt-staging',
babelConfig: babelDev
}
}
//Set preset here:
module.exports = presets.staging