Files
vercel__next.js/docs
Masashi Kawafuji 2759ad0fe2 docs: add export const dynamic = 'force-static' to Route Handlers example on Static Exports (#96964)
What?
When a static export is enabled, route handlers require export const
dynamic = 'force-static'. However, this instruction is missing in the
documentation.

Why?
Without export const dynamic = 'force-static', next dev and next build
fail when a static export is enabled.

How?
This PR adds the instruction to correct the usage of Route Handlers on
static exports.
2026-08-08 19:08:34 +02:00
..