From 31124e4a9037c207263f54ab3612ec74970c5b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Wed, 3 Jan 2024 15:25:33 +0100 Subject: [PATCH] fix: add feature-flag for license --- src/lib/__snapshots__/create-config.test.ts.snap | 1 + src/lib/types/experimental.ts | 2 ++ 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 f3468980aae7..0bc69fdda535 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -83,6 +83,7 @@ exports[`should create default config 1`] = ` "disableNotifications": false, "embedProxy": true, "embedProxyFrontend": true, + "enableLicense": false, "featureSearchAPI": false, "featureSearchFeedback": true, "featureSearchFeedbackPosting": false, diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 93dfc3fec33a..5625f4873f7a 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -5,6 +5,7 @@ import { getDefaultVariant } from 'unleash-client/lib/variant'; export type IFlagKey = | 'accessLogs' | 'anonymiseEventLog' + | 'enableLicense' | 'embedProxy' | 'embedProxyFrontend' | 'responseTimeWithAppNameKillSwitch' @@ -41,6 +42,7 @@ export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; const flags: IFlags = { anonymiseEventLog: false, + enableLicense: false, embedProxy: parseEnvVarBoolean( process.env.UNLEASH_EXPERIMENTAL_EMBED_PROXY, true,