diff --git a/app/server/lib/configCore.ts b/app/server/lib/configCore.ts index 58ddf627..99c3770b 100644 --- a/app/server/lib/configCore.ts +++ b/app/server/lib/configCore.ts @@ -4,7 +4,8 @@ import { fileConfigAccessorFactory, IWritableConfigValue } from "./config"; -import { convertToCoreFileContents, IGristCoreConfigFileLatest } from "./configCoreFileFormats"; +import {convertToCoreFileContents, IGristCoreConfigFileLatest} from "./configCoreFileFormats"; +import {isAffirmative} from 'app/common/gutil'; export type Edition = "core" | "enterprise"; @@ -23,6 +24,9 @@ export function loadGristCoreConfigFile(configPath?: string): IGristCoreConfig { export function loadGristCoreConfig(fileConfig?: FileConfig): IGristCoreConfig { const fileConfigValue = fileConfigAccessorFactory(fileConfig); return { - edition: createConfigValue("core", fileConfigValue("edition")) + edition: createConfigValue( + isAffirmative(process.env.TEST_ENABLE_ACTIVATION) ? "enterprise" : "core", + fileConfigValue("edition") + ) }; }