← 返回 💻 编程 & 软件工程

Catch missing feature flags before they reach production

Vercel News Andy Schneider 8 小时前 vercel.com

Vercel Flags can now block a deployment from reaching production if you’ve declared a flag in code but haven’t created it in your project. Without that definition, your app can silently fall back to the flag’s default value, even if that turns on a feature you meant to keep off.

The Flag Definitions Present Deployment Check runs when a deployment is ready. If any flags are missing, the check fails and lists them in the results, where you can create each one before redeploying.

The check reads your Flags SDK discovery endpoint and requires FLAGS_SECRET to be set in your project’s environment.

To turn on blocking, teams on all plans can enable the check in their project’s Build and Deployment settings and mark it as required. See the Deployment Checks documentation for setup details.

在原文站打开 ↗

Cloudflare Workers 每 3 分钟抓一批,9 批轮完最快约 27 分钟 · 点右上 ↻ 立刻全量抓一次