We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e74625 commit 4a6405bCopy full SHA for 4a6405b
config/constants/index.js
@@ -2,9 +2,8 @@ module.exports = (() => {
2
const branch = process.env.CIRCLE_BRANCH || 'dev'
3
4
// 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.')
+ if (['master', 'qa'].indexOf(branch) < 0) {
+ return require('./dev')
7
}
8
-
9
return require('./' + branch)
10
})()
0 commit comments