rembrembdocs

Route Segment Config

Last updated April 23, 2026

The Route Segment Config options allow you to configure the behavior of a Page, Layout, or Route Handler by directly exporting the following variables:

OptionTypeDefault
dynamicParamsbooleantrue
runtime`'nodejs''edge'`
preferredRegion`'auto''global'
maxDurationnumberSet by deployment platform

Version History

Version
v16.0.0dynamic, dynamicParams, revalidate, and fetchCache removed when Cache Components is enabled. See Caching and Revalidating (Previous Model).
v16.0.0export const experimental_ppr = true removed. A codemod is available.
v15.0.0-RCexport const runtime = "experimental-edge" deprecated. A codemod is available.

[

dynamicParams

API reference for the dynamicParams route segment config option.

](dynamicParams/index.md)[

maxDuration

API reference for the maxDuration route segment config option.

](maxDuration/index.md)[

preferredRegion

API reference for the preferredRegion route segment config option.

](preferredRegion/index.md)[

runtime

API reference for the runtime route segment config option.

](runtime/index.md)

Was this helpful?