From 92d43ed4f6add2c1db195d4009eac7d2f13b2a78 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Tue, 11 Jul 2023 10:27:42 +0200 Subject: [PATCH] fix: missing flags (#4214) --- src/lib/__snapshots__/create-config.test.ts.snap | 4 ++++ src/lib/types/experimental.ts | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index 691d0652b2..907f898639 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -89,11 +89,13 @@ exports[`should create default config 1`] = ` }, }, "migrationLock": false, + "newProjectLayout": false, "personalAccessTokensKillSwitch": false, "proPlanAutoCharge": false, "responseTimeWithAppNameKillSwitch": false, "segmentContextFieldUsage": false, "strategySplittedButton": false, + "strategyVariant": false, "strictSchemaValidation": false, }, }, @@ -121,11 +123,13 @@ exports[`should create default config 1`] = ` }, }, "migrationLock": false, + "newProjectLayout": false, "personalAccessTokensKillSwitch": false, "proPlanAutoCharge": false, "responseTimeWithAppNameKillSwitch": false, "segmentContextFieldUsage": false, "strategySplittedButton": false, + "strategyVariant": false, "strictSchemaValidation": false, }, "externalResolver": { diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index d524204d2b..d3f5066b83 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -110,6 +110,14 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_CUSTOM_ROOT_ROLES, false, ), + newProjectLayout: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_NEW_PROJECT_LAYOUT, + false, + ), + strategyVariant: parseEnvVarBoolean( + process.env.UNLEASH_STRATEGY_VARIANT, + false, + ), }; export const defaultExperimentalOptions: IExperimentalOptions = {