Skip to content

Feature Flags

Nick Watts edited this page Jul 8, 2022 · 6 revisions

To add a feature flag, add a function to src/libs/config.js:

export const isMyFeatureEnabled = () => getConfig().isMyFeatureEnabled

Call that function to check if the feature is enabled.

To enable the feature, users can run the following in the browser console and refresh the page.

window.configOverridesStore.set({ isMyFeatureEnabled: true })

While a feature is enabled like this, a "Config overrides are in effect" message will be shown in the lower right corner of the window. The message also has a "clear" button to disable the feature.

Clone this wiki locally