Skip to content

Conversation

@m-kawafuji
Copy link

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.

@ijjk ijjk added the Documentation Related to Next.js' official documentation. label Nov 18, 2025
@ijjk
Copy link
Member

ijjk commented Nov 18, 2025

Allow CI Workflow Run

  • approve CI run for commit: ca2e0bf

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Related to Next.js' official documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants