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