· via Vercel blog
Vercel Flags can now block production deploys over missing feature flag definitions
Vercel's new Flag Definitions Present deployment check fails promotions when code declares a flag the project never defined, closing a gap that let apps silently fall back to unintended defaults.

Vercel has added a new safety net to its Flags product: a deployment check that stops a build from being promoted to production when the code declares a feature flag that was never created in the project. According to the Vercel blog, the new check, named Flag Definitions Present, evaluates each deployment as it becomes ready and fails the promotion when it finds declared flags with no matching definitions, listing them so they can be added before a redeploy.
The failure mode it targets
The problem is an invisible fallback. An application that references an undefined flag does not throw an error; it resolves the reference to the flag's default value. Vercel notes that this default can end up enabling a feature the team meant to keep disabled, so the mistake never announces itself as a crash or a failed build. Instead, it shows up as behavior that was never supposed to be live.
That quietness is what makes this bug class difficult to catch. There is no stack trace to read and no obvious log line to search for, because the application runs normally while quietly disagreeing with its configuration. In practice, the gap tends to surface only after someone notices a half-finished feature in front of users, at which point a rollback is already urgent.
How the check works
Rather than parsing source code, the check reads the Flags SDK discovery endpoint, the same mechanism the SDK itself uses to determine which flags an application declares. Vercel requires the FLAGS_SECRET environment variable to be set in the project for this to function.
The evaluation happens at deployment-ready time, which makes it a promotion gate rather than a static analysis step in the editor or a separate CI job. When the check fails, the results name each missing flag, and the path forward is to create those definitions and deploy again.
Availability and setup
According to Vercel, the check is open to teams on every plan rather than being reserved for higher tiers. Enabling it is a manual step: a project admin turns the check on in the project's Build and Deployment settings and marks it as required, and that required status is what makes a failed check an actual block on the deployment.
Why it matters
Feature flags are meant to make shipping safer by decoupling deployment from release, but that safety depends on code and configuration staying in agreement. In real projects they drift: flags get added in branches, renamed during review, or deleted in one place and not another. On Vercel, catching that drift previously meant writing custom validation against the discovery endpoint, or finding out the hard way in production.
By moving the check to the deployment gate, Vercel converts a runtime correctness problem into a pre-production failure, where it costs the least to fix. The pattern also keeps control with the team: the check is opt-in, and enforcement is an explicit setting rather than something imposed by default.
The underlying risk is not specific to one platform. Any flag system that quietly substitutes a default when a definition is missing has the same failure mode, and teams running their own infrastructure may want an equivalent guard. A CI step that compares declared flags against actual definitions would achieve much the same result.
- #vercel
- #feature-flags
- #deployment
- #devops
- #cloud