Skip to content

samjib/FeatureFlagOverrides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Feature Flag Override Example

An example browser extension to simulate toggling client-side feature flags.

To work with manifest v3, this extension monkey patches the fetch function to intercept requests to the feature flag endpoint and override the response with the desired feature flag values.

Running The Demo

Chrome Demo

Browser Extension

Chrome

cd BrowserExtension
yarn
yarn dev

In Chrome, go to chrome://extensions/, enable developer mode, click Load unpacked, then select the build/chrome-mv3-dev directory.

On installation, you may need to refresh the page if you already have the demo app open.

Firefox

cd BrowserExtension
yarn
yarn build --target=firefox-mv2 --zip

In Firefox, go to about:debugging#/runtime/this-firefox, click Load Temporary Add-on, then select the build/firefox-mv2-dev.zip file.

Demo App

cd DemoApp
yarn
yarn dev

Open http://localhost:3000 in your browser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published