diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index 5613f0001283..4a22c1b2b6d9 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -82,6 +82,7 @@ exports[`should create default config 1`] = ` "automatedActions": false, "caseInsensitiveInOperators": false, "celebrateUnleash": false, + "changeRequestPlayground": false, "cleanApiTokenWhenOrphaned": false, "collectTrafficDataUsage": false, "commandBarUI": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 0fca2fc2fecd..17dbe6b4062b 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -72,7 +72,8 @@ export type IFlagKey = | 'featureCollaborators' | 'improveCreateFlagFlow' | 'originMiddleware' - | 'newEventSearch'; + | 'newEventSearch' + | 'changeRequestPlayground'; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; @@ -349,6 +350,10 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_NEW_EVENT_SEARCH, false, ), + changeRequestPlayground: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_CHANGE_REQUEST_PLAYGROUND, + false, + ), }; export const defaultExperimentalOptions: IExperimentalOptions = { diff --git a/src/server-dev.ts b/src/server-dev.ts index a7c5068698d1..baa9a40ffdb1 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -62,6 +62,7 @@ process.nextTick(async () => { improveCreateFlagFlow: true, originMiddleware: true, newEventSearch: true, + changeRequestPlayground: true, }, }, authentication: {