Back to Next Js

Route Segment Config

docs/01-app/03-api-reference/03-file-conventions/02-route-segment-config/index.mdx

16.2.52.9 KB
Original Source

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''nodejs'
preferredRegion'auto' | 'global' | 'home' | string | string[]'auto'
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.