export const dynamic

The route segment option that overrides automatic static or dynamic detection, with values such as force-dynamic and force-static.

In more detail

'auto' is the default. 'force-dynamic' renders on every request; 'force-static' renders once and makes cookies, headers and searchParams return empty values; 'error' fails the build if anything dynamic is used.

Related terms

Taught in

References