From ac9da976cce87ad94b7b7064e3869fb07c88fb21 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Tue, 21 Feb 2023 14:47:49 +0100 Subject: [PATCH] feat: notifications flag (#3172) Adds feature flag for notification --- 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 7bffae99e6..592bee1e41 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -78,6 +78,7 @@ exports[`should create default config 1`] = ` "maintenanceMode": false, "messageBanner": false, "newProjectOverview": false, + "notifications": false, "projectStatusApi": false, "proxyReturnAllToggles": false, "responseTimeWithAppName": false, @@ -98,6 +99,7 @@ exports[`should create default config 1`] = ` "maintenanceMode": false, "messageBanner": false, "newProjectOverview": false, + "notifications": false, "projectStatusApi": false, "proxyReturnAllToggles": false, "responseTimeWithAppName": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index fa596480ff..b4a304e282 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -62,6 +62,7 @@ const flags = { process.env.UNLEASH_STRICT_SCHEMA_VALIDTION, false, ), + notifications: parseEnvVarBoolean(process.env.NOTIFICATIONS, false), }; export const defaultExperimentalOptions: IExperimentalOptions = {