From 0797e2849ff981d1b0e2b164fd7e3249d243635c Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Thu, 16 Mar 2023 16:27:08 +0100 Subject: [PATCH] feat: project mode flag (#3336) --- src/lib/__snapshots__/create-config.test.ts.snap | 2 ++ src/lib/types/experimental.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index ea2e4797fb..68828eb3cc 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`] = ` "newProjectOverview": false, "notifications": false, "proPlanAutoCharge": false, + "projectMode": false, "projectScopedSegments": false, "projectScopedStickiness": false, "projectStatusApi": false, @@ -107,6 +108,7 @@ exports[`should create default config 1`] = ` "newProjectOverview": false, "notifications": false, "proPlanAutoCharge": false, + "projectMode": false, "projectScopedSegments": false, "projectScopedStickiness": false, "projectStatusApi": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 06d0dcb1ed..25cb0f3de7 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -72,6 +72,7 @@ const flags = { process.env.PROJECT_SCOPED_STICKINESS, false, ), + projectMode: parseEnvVarBoolean(process.env.PROJECT_MODE, false), cleanClientApi: parseEnvVarBoolean(process.env.CLEAN_CLIENT_API, false), };