Vercel can now block a deploy over an undeclared feature flag
A new Deployment Check fails the build if a flag used in code was never created in the project, instead of letting it silently fall back to a default.
Vercel has added a “Flag Definitions Present” Deployment Check that blocks a deployment from reaching production if your code declares a feature flag that was never created in the project. Without that definition, the flag silently falls back to its default value, which can mean a feature you meant to keep off switches on in production with nobody noticing.
The check reads your Flags SDK discovery endpoint, which needs FLAGS_SECRET set in the project’s environment, and runs at deployment readiness. It’s available on every plan, turned on from Build and Deployment settings, and can be marked required so a missing flag stops the deploy rather than just getting logged:
Build and Deployment settings → Deployment Checks → Flag Definitions Present
If a flag is missing, the check lists it in the results so you can create it before redeploying.
Why it matters: teams using the Flags SDK already trust flag checks to gate real behaviour, so a flag with no definition isn’t a cosmetic bug, it’s a feature going live by accident. This moves that failure from a silent runtime fallback to a build that stops, which is the difference between finding out in a postmortem and finding out before you ship.