From eac5903a4183ffb097913e1eb03ffec92d449138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Gra=CC=88=C3=9Fl?= Date: Fri, 3 Nov 2023 18:57:41 +0100 Subject: [PATCH] fix(config-utils): Also check env for BETA to choose deployment --- packages/config/src/lib/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/config/src/lib/index.ts b/packages/config/src/lib/index.ts index 109248ff6b..6051d3ef8c 100644 --- a/packages/config/src/lib/index.ts +++ b/packages/config/src/lib/index.ts @@ -61,7 +61,8 @@ 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 = + 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);