From 888ca498178ee35ac3282f667e94f27065906eea 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/config/src/lib/index.ts b/packages/config/src/lib/index.ts index 109248ff6..9b2898a0d 100644 --- a/packages/config/src/lib/index.ts +++ b/packages/config/src/lib/index.ts @@ -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);