route segment config

Constants exported from a page, layout or route file, such as dynamic, revalidate or runtime, that change how that segment is rendered and cached.

In more detail

Examples: export const dynamic = 'force-static', export const revalidate = 86400 or export const runtime = 'edge'. The values must be written as literals so Next.js can read them at build time.

Related terms

Taught in

References