
This example uses Vercel Flags for feature flags with the Flags SDK along with the @flags-sdk/vercel adapter and the Flags Explorer.
https://flags-sdk-vercel.vercel.app/
This demo uses feature flags in Vercel Flags to control the visibility of banners on the page and the color of the checkout button. Flag configurations are managed directly in the Vercel Dashboard.
If you deploy your own and configure the feature flags in the Vercel Dashboard, you can also use the Flags Explorer to enable/disable the features locally.
Clicking the button above will:
In order to use the Flags Explorer, you need to link the project on your local machine.
vercel link
Select the project from the list you just deployed.
Navigate to the Flags tab in your Vercel project dashboard and create the following flags:
Feature Flags:
summer-sale - Boolean flag to show/hide the summer sale bannerfree-delivery - Boolean flag to show/hide the free delivery bannerproceed-to-checkout-color - String flag with values: blue, green, redYou can also find the feature flag keys in the flags.ts file.
This pulls the FLAGS environment variable that contains your SDK keys:
vercel env pull
pnpm installpnpm dev
If FLAGS or FLAGS_SECRET are missing, requests are rewritten to /setup
until configuration is complete. The setup page includes a checklist and the
required flag keys.
For local development, make sure you have:
vercel linkvercel env pullFLAGS_SECRET in .env.local for precompute and secure Flags Explorer overrides

