Skip to content

Commit

Permalink
fix: add feature-flag for license
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarconr committed Jan 3, 2024
1 parent a73d87a commit 31124e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/__snapshots__/create-config.test.ts.snap
Expand Up @@ -83,6 +83,7 @@ exports[`should create default config 1`] = `
"disableNotifications": false,
"embedProxy": true,
"embedProxyFrontend": true,
"enableLicense": false,
"featureSearchAPI": false,
"featureSearchFeedback": true,
"featureSearchFeedbackPosting": false,
Expand Down
2 changes: 2 additions & 0 deletions src/lib/types/experimental.ts
Expand Up @@ -5,6 +5,7 @@ import { getDefaultVariant } from 'unleash-client/lib/variant';
export type IFlagKey =
| 'accessLogs'
| 'anonymiseEventLog'
| 'enableLicense'
| 'embedProxy'
| 'embedProxyFrontend'
| 'responseTimeWithAppNameKillSwitch'
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 31124e4

Please sign in to comment.