-
Notifications
You must be signed in to change notification settings - Fork 21
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.
Terra UI Wiki.
- Getting Started
- Contributor Guide
- Intro to UI Development
- Troubleshooting Build Failures
- Editor Configuration
- BEEs
- Pull Requests
- How to Find a PR Site
- Feature Flags
- Mixpanel
- Cobranding and White-Label Sites
- Using Terra UI packages in other projects