From 1875c9b6d1eb1b8c054582a85bb51c454de405ef Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Fri, 4 Oct 2024 15:07:14 +0300 Subject: [PATCH] feat: add flag to purchase additional environments (#8366) --- src/lib/types/experimental.ts | 7 ++++++- src/server-dev.ts | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index ee9f6aecb8..41df802b1f 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -60,7 +60,8 @@ export type IFlagKey = | 'projectRoleAssignment' | 'eventTimeline' | 'personalDashboardUI' - | 'trackLifecycleMetrics'; + | 'trackLifecycleMetrics' + | 'purchaseAdditionalEnvironments'; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; @@ -297,6 +298,10 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_TRACK_LIFECYCLE_METRICS, false, ), + purchaseAdditionalEnvironments: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_PURCHASE_ADDITIONAL_ENVIRONMENTS, + false, + ), }; export const defaultExperimentalOptions: IExperimentalOptions = { diff --git a/src/server-dev.ts b/src/server-dev.ts index f702cdbcc2..c132b9ec99 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -55,6 +55,7 @@ process.nextTick(async () => { onboardingMetrics: true, onboardingUI: true, personalDashboardUI: true, + purchaseAdditionalEnvironments: true, }, }, authentication: {