-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
executable file
·36 lines (36 loc) · 981 Bytes
/
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
module.exports = {
// The port on which the server listens upon starting the server
PORT: 3000,
// The port used by Webpack Dev Server
WEBPACK_PORT: 8080,
// Server-side rendering mode
SSR: false,
// This object contains all the constants that are available to all source files
globals: {
dev: {
API_URL: 'http://localhost:3001',
},
prod: {
API_URL: 'http://example.com',
},
},
babelrc: {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
'@babel/preset-react',
],
plugins: [
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-transform-async-to-generator',
'babel-plugin-styled-components',
'@loadable/babel-plugin',
],
},
};