diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index b390fdefe2..235908e77d 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -90,6 +90,7 @@ export type UiFlags = { eventTimeline?: boolean; personalDashboardUI?: boolean; purchaseAdditionalEnvironments?: boolean; + unleashAI?: boolean; }; export interface IVersionInfo { diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 41df802b1f..ab85f13a0f 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -61,7 +61,8 @@ export type IFlagKey = | 'eventTimeline' | 'personalDashboardUI' | 'trackLifecycleMetrics' - | 'purchaseAdditionalEnvironments'; + | 'purchaseAdditionalEnvironments' + | 'unleashAI'; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; @@ -302,6 +303,10 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_PURCHASE_ADDITIONAL_ENVIRONMENTS, false, ), + unleashAI: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_UNLEASH_AI, + false, + ), }; export const defaultExperimentalOptions: IExperimentalOptions = { diff --git a/src/server-dev.ts b/src/server-dev.ts index c132b9ec99..cae82c6cf4 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -56,6 +56,7 @@ process.nextTick(async () => { onboardingUI: true, personalDashboardUI: true, purchaseAdditionalEnvironments: true, + unleashAI: true, }, }, authentication: {