From 64b09b0ba463d9d575e909db719370b80835ce1b Mon Sep 17 00:00:00 2001 From: Fangdun Tsai Date: Thu, 21 Mar 2024 16:05:26 +0800 Subject: [PATCH] fix(ci): isSelfHosted does not take effect under CI --- packages/frontend/core/.webpack/runtime-config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/core/.webpack/runtime-config.ts b/packages/frontend/core/.webpack/runtime-config.ts index 201837f8be48d..f0f4105600c4b 100644 --- a/packages/frontend/core/.webpack/runtime-config.ts +++ b/packages/frontend/core/.webpack/runtime-config.ts @@ -137,7 +137,6 @@ export function getRuntimeConfig(buildFlags: BuildFlags): RuntimeConfig { : buildFlags.mode === 'development' ? true : currentBuildPreset.allowLocalWorkspace, - isSelfHosted: process.env.SELF_HOSTED === 'true', }; const testEnvironmentPreset = { @@ -149,6 +148,8 @@ export function getRuntimeConfig(buildFlags: BuildFlags): RuntimeConfig { } return { + // Downloads fonts to self-hosted image + isSelfHosted: process.env.SELF_HOSTED === 'true', ...currentBuildPreset, // environment preset will overwrite current build preset // this environment variable is for debug proposes only