1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: add feature-flag for license

This commit is contained in:
Ivar Conradi Østhus 2024-01-03 15:25:33 +01:00
parent a73d87a943
commit 31124e4a90
No known key found for this signature in database
GPG Key ID: 14F51E4841AF1DE1
2 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,7 @@ exports[`should create default config 1`] = `
"disableNotifications": false,
"embedProxy": true,
"embedProxyFrontend": true,
"enableLicense": false,
"featureSearchAPI": false,
"featureSearchFeedback": true,
"featureSearchFeedbackPosting": false,

View File

@ -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,