Skip to content

Commit b2d5242

Browse files
committed
Starting the integration with cosmic JS api
1 parent dc79fba commit b2d5242

File tree

7 files changed

+496
-343
lines changed

7 files changed

+496
-343
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ yarn-error.log*
77
/test/unit/coverage/
88
/test/e2e/reports/
99
selenium-debug.log
10+
/config/local*
1011

1112
# Editor directories and files
1213
.idea

config/dev.env.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
'use strict'
22
const merge = require('webpack-merge')
33
const prodEnv = require('./prod.env')
4+
let localEnv = {}
45

5-
module.exports = merge(prodEnv, {
6+
try {
7+
// store your local env vars local.env.js file if needed
8+
localEnv = require('./local.env')
9+
} catch(e) {
10+
localEnv = {}
11+
}
12+
13+
module.exports = merge(localEnv, prodEnv, {
614
NODE_ENV: '"development"'
715
})

0 commit comments

Comments
 (0)