mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 18:26:05 +08:00
ci: fix isSelfHosted does not take effect (#6249)
This commit is contained in:
@@ -130,7 +130,6 @@ export function getRuntimeConfig(buildFlags: BuildFlags): RuntimeConfig {
|
|||||||
: buildFlags.mode === 'development'
|
: buildFlags.mode === 'development'
|
||||||
? true
|
? true
|
||||||
: currentBuildPreset.allowLocalWorkspace,
|
: currentBuildPreset.allowLocalWorkspace,
|
||||||
isSelfHosted: process.env.SELF_HOSTED === 'true',
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const testEnvironmentPreset = {
|
const testEnvironmentPreset = {
|
||||||
@@ -142,6 +141,7 @@ export function getRuntimeConfig(buildFlags: BuildFlags): RuntimeConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
isSelfHosted: process.env.SELF_HOSTED === 'true',
|
||||||
...currentBuildPreset,
|
...currentBuildPreset,
|
||||||
// environment preset will overwrite current build preset
|
// environment preset will overwrite current build preset
|
||||||
// this environment variable is for debug proposes only
|
// this environment variable is for debug proposes only
|
||||||
|
|||||||
Reference in New Issue
Block a user