DCE-safe require() patterns and edge runtime constraints. Use when writing conditional require() calls, guarding Node-only imports (node:stream etc.), or editing define-env-plugin.ts / app-render / stream-utils for edge builds. Covers if/else branching for webpack DCE, TypeScript definite assignment, the NEXT_RUNTIME vs real feature flag distinction, and forcing flags false for edge in define-env.ts.
$npx -y skills add vercel/next.js --skill dce-edgeInstalls into the current project.
Run `npx skills use "https://github.com/vercel/next.js" --skill "vercel/next.js/dce-edge"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/vercel/next.js" that are relevant to the current task. Run `npx skills add "https://github.com/vercel/next.js"` and select the relevant skills, then follow their instructions.