Skip to content

Commit

Permalink
fix(config): add missing isProd variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed May 26, 2021
1 parent f3bb5e9 commit 41c0e47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const getAppEntry = (rootFolder, isProd) => {

module.exports = (configurations) => {
configurations.isProd = configurations.isProd || process.env.NODE_ENV === 'production';
const isProd = configurations.isProd;
const { insights } = require(`${configurations.rootFolder}/package.json`);
const gitBranch = process.env.TRAVIS_BRANCH || process.env.BRANCH || gitRevisionPlugin.branch();
const appDeployment = configurations.deployment || ((isProd && betaBranches.includes(gitBranch)) ?
Expand Down

0 comments on commit 41c0e47

Please sign in to comment.