Skip to content

Commit

Permalink
fix(config-utils): Also check env for BETA to choose deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
bastilian committed Nov 27, 2023
1 parent 203d7f3 commit 888ca49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/config/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ const createFecConfig = (
fecLogger(LogType.info, 'no git branch detected, using main for webpack "main" config.');
gitBranch = 'main';
}
const appDeployment = configurations.deployment || (isProd && betaBranches.includes(gitBranch) ? 'beta/apps' : 'apps');
const appDeployment =
typeof configurations.deployment === 'string'
? configurations.deployment
: configurations.deployment || ((isProd && betaBranches.includes(gitBranch)) || process.env.BETA === 'true' ? 'beta/apps' : 'apps');

const publicPath = `/${appDeployment}/${insights.appname}/`;
const appEntry = configurations.appEntry || getAppEntry(configurations.rootFolder, isProd);
Expand Down

0 comments on commit 888ca49

Please sign in to comment.