1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

feat: adds demo feature flag (#3514)

https://linear.app/unleash/issue/2-912/create-demo-feature-flag

Adds `demo` as a feature flag that controls the new interactive demo
feature.
This commit is contained in:
Nuno Góis 2023-04-13 12:06:00 +01:00 committed by GitHub
parent 8270d44e40
commit d2da6de7d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,7 @@ export interface IFlags {
projectScopedSegments?: boolean;
projectScopedStickiness?: boolean;
personalAccessTokensKillSwitch?: boolean;
demo?: boolean;
}
export interface IVersionInfo {

View File

@ -73,6 +73,7 @@ exports[`should create default config 1`] = `
"caseInsensitiveInOperators": false,
"cleanClientApi": false,
"crOnVariants": false,
"demo": false,
"embedProxy": true,
"embedProxyFrontend": true,
"featuresExportImport": true,
@ -101,6 +102,7 @@ exports[`should create default config 1`] = `
"caseInsensitiveInOperators": false,
"cleanClientApi": false,
"crOnVariants": false,
"demo": false,
"embedProxy": true,
"embedProxyFrontend": true,
"featuresExportImport": true,

View File

@ -82,6 +82,7 @@ const flags = {
false,
),
migrationLock: parseEnvVarBoolean(process.env.MIGRATION_LOCK, false),
demo: parseEnvVarBoolean(process.env.UNLEASH_DEMO, false),
};
export const defaultExperimentalOptions: IExperimentalOptions = {