runtime files should be read at runtime

next.js2026-05-19

If a page depends on the latest file contents, read inside the request path and mark the route dynamic. Module-scope reads are easy to accidentally freeze.

see also: all learnings

← back