With flags@4.5.0, projects on Vercel can use Flags Explorer and precompute without FLAGS_SECRET. That cuts out a setup step for new projects and removes the need to keep a shared secret in sync across microfrontends. Vercel signs Flags Explorer discovery requests and overrides, and the SDK encrypts flag values shown in the Vercel Toolbar with Vercel’s public key. Existing projects keep using FLAGS_SECRET while the environment variable is set or the secret is passed in code. Upgrading alone doesn't switch them to Vercel-managed keys. To use Vercel-managed keys for these features, remove the environment variable and any code that passes the secret explicitly. For local development, run vercel env pull. Precomputed codes created without a secret work only in the deployment that created them. Precompute without a secret requires Vercel system environment variables, which are enabled by default. Prebuilt deployments and codes that must work across deployments still need a secret; use FLAGS_PRECOMPUTE_SECRET if only precompute needs one. If you use a build cache, see the precompute documentation for the required configuration. Learn more in the Flags SDK documentation.
AI NEWS JOURNAL
VercelAI NEWS / JOURNAL
Flags SDK now works on Vercel without FLAGS_SECRET
With flags@4.5.0, Vercel projects can use Flags Explorer and precompute without requiring a FLAGS_SECRET, simplifying setup and eliminating the need to sync secrets across microfrontends. Vercel signs discovery requests and overrides, while the SDK encrypts flag values in the Vercel Toolbar using Vercel’s public key. Existing projects continue using FLAGS_SECRET if it's set or passed in code; upgrading alone doesn't switch to Vercel-managed keys. To transition, remove the environment variable and any explicit secret passes—use `vercel env pull` for local development. Precomputed codes without a secret are deployment-specific and require Vercel system environment variables, enabled by default. Cross-deployment prebuilt deployments still need a secret; use FLAGS_PRECOMPUTE_SECRET if only precompute requires one. Build cache users should consult the precompute documentation for required configurations.