Skip to content

Commit 12a387a

Browse files
author
Vikas Agarwal
committed
Fixing builds by allowing feature branches to be built and using dev env web pack config for all feature branches instead of blocking them completely.
1 parent 0b9eedc commit 12a387a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

config/constants/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ module.exports = (() => {
22
const branch = process.env.CIRCLE_BRANCH || 'dev'
33

44
// for security reason don't let to require any arbitrary file defined in process.env
5-
if (['dev', 'master', 'qa'].indexOf(branch) < 0) {
6-
throw Error('Unsupported CIRCLE_BRANCH value.')
5+
if (['master', 'qa'].indexOf(branch) < 0) {
6+
return require('./' + branch)
7+
} else {
8+
return require('./dev')
79
}
8-
9-
return require('./' + branch)
1010
})()

0 commit comments

Comments
 (0)