From 6a0ab54e251a63a1cbcdac7f174e7f2e4b926b43 Mon Sep 17 00:00:00 2001 From: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com> Date: Thu, 21 Mar 2024 08:52:14 +0000 Subject: [PATCH] ci: fix isSelfHosted does not take effect (#6249) --- tools/cli/src/webpack/runtime-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cli/src/webpack/runtime-config.ts b/tools/cli/src/webpack/runtime-config.ts index 4121714cc5..7ee94dfdfb 100644 --- a/tools/cli/src/webpack/runtime-config.ts +++ b/tools/cli/src/webpack/runtime-config.ts @@ -130,7 +130,6 @@ export function getRuntimeConfig(buildFlags: BuildFlags): RuntimeConfig { : buildFlags.mode === 'development' ? true : currentBuildPreset.allowLocalWorkspace, - isSelfHosted: process.env.SELF_HOSTED === 'true', }; const testEnvironmentPreset = { @@ -142,6 +141,7 @@ export function getRuntimeConfig(buildFlags: BuildFlags): RuntimeConfig { } return { + isSelfHosted: process.env.SELF_HOSTED === 'true', ...currentBuildPreset, // environment preset will overwrite current build preset // this environment variable is for debug proposes only