From f713ba1fbfd49f513da57f95de9a4f33b1f0f1e8 Mon Sep 17 00:00:00 2001 From: David Leek Date: Wed, 16 Oct 2024 08:35:32 +0200 Subject: [PATCH] chore: releasePlans feature flag --- 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 4c2b8e17e211..4ea7e2369e42 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -63,7 +63,8 @@ export type IFlagKey = | 'originMiddlewareRequestLogging' | 'unleashAI' | 'webhookDomainLogging' - | 'addonUsageMetrics'; + | 'addonUsageMetrics' + | 'releasePlans'; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; @@ -312,6 +313,10 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_ADDON_USAGE_METRICS, false, ), + releasePlans: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_RELEASE_PLANS, + false, + ), }; export const defaultExperimentalOptions: IExperimentalOptions = { diff --git a/src/server-dev.ts b/src/server-dev.ts index 1da3845e862e..e38f98ee78a2 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -58,6 +58,7 @@ process.nextTick(async () => { unleashAI: true, webhookDomainLogging: true, addonUsageMetrics: true, + releasePlans: true, }, }, authentication: {