ci: fix isSelfHosted does not take effect (#6249)

This commit is contained in:
Brooooooklyn 2024-03-21 08:52:14 +00:00
parent 18224a83d1
commit 6a0ab54e25
No known key found for this signature in database
GPG Key ID: 30B1140CE1C07C99

View File

@ -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