diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index 26bbf90f61..2b16b3917b 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -83,6 +83,7 @@ export type UiFlags = { featureLifecycle?: boolean; scimApi?: boolean; projectListFilterMyProjects?: boolean; + createProjectWithEnvironmentConfig?: boolean; }; export interface IVersionInfo { diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index b803013285..4ab36c0ab7 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -80,6 +80,7 @@ exports[`should create default config 1`] = ` "caseInsensitiveInOperators": false, "celebrateUnleash": false, "collectTrafficDataUsage": false, + "createProjectWithEnvironmentConfig": false, "demo": false, "disableBulkToggle": false, "disableMetrics": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 5ee59943b6..6481c4cab7 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -59,7 +59,8 @@ export type IFlagKey = | 'projectOverviewRefactorFeedback' | 'featureLifecycle' | 'projectListFilterMyProjects' - | 'parseProjectFromSession'; + | 'parseProjectFromSession' + | 'createProjectWithEnvironmentConfig'; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; @@ -292,6 +293,10 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_PARSE_PROJECT_FROM_SESSION, false, ), + createProjectWithEnvironmentConfig: parseEnvVarBoolean( + process.env.UNLEASH_EXPERIMENTAL_CREATE_PROJECT_WITH_ENVIRONMENT_CONFIG, + false, + ), }; export const defaultExperimentalOptions: IExperimentalOptions = { diff --git a/src/server-dev.ts b/src/server-dev.ts index 28ff7362ee..0ad10ffec1 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -56,6 +56,7 @@ process.nextTick(async () => { featureLifecycle: true, projectListFilterMyProjects: true, parseProjectFromSession: true, + createProjectWithEnvironmentConfig: true, }, }, authentication: {