Draft Mode: render unlisted closed dynamic routes when the bypass cookie is valid
Author: ask-bonk[bot]Created Sep 29, 2026Updated Sep 29, 2026
Labelsnextjs-tracking
Next.js Change
What changed
Next.js adapter deployments now allow Draft Mode to render dynamic paths that were not generated at build time, even when App Router dynamicParams = false or Pages Router fallback: false would return 404 for ordinary requests. A valid __prerender_bypass cookie is sufficient for routing Draft Mode requests; legacy Pages Preview payloads remain validated when present.
Impact on vinext
vinext Cloudflare and production routing must not reject an unlisted closed dynamic route before Draft Mode handling sees its valid bypass cookie. Ordinary requests must remain 404, and preview handling must not contaminate public prerendered responses.
Acceptance criteria
- App Router
dynamicParams = falseroutes render an unlisted path in Draft Mode and return 404 without Draft Mode. - Pages Router
fallback: falseroutes behave equivalently for document and data requests. - Use the valid
__prerender_bypasscookie to admit Draft Mode requests without requiring legacy preview data. - Reject malformed legacy preview payloads when one is supplied.
- Keep public cache entries isolated from Draft Mode responses.
- Cover dev and production/Cloudflare request paths.
Related
- vercel/next.js#99370 - upstream fix
Source: cloudflare/vinext