Flags

How to add or modify Next.js experimental feature flags end-to-end. Use when editing config-shared.ts, config-schema.ts, define-env-plugin.ts, next-server.ts, export/worker.ts, or module.compiled.js. Covers type declaration, zod schema, build-time injection, runtime env plumbing, and the decision between runtime env-var branching vs separate bundle variants.

mahabdalla Updated

File contents

mahabdalla/skills-registry/tree/main/vercel--next-js--flags commit 09ad2accf7

Frequently asked questions

npx skillmds@latest add mahabdalla/flags