Question presented to candidate: "What are the export const options you can put in a page, layout or route file, what do dynamic, revalidate and runtime do, and what changed in Next.js 16?"
What a strong answer should cover:
- Segment config is a set of named exports in a page, layout or Route Handler that tune how that segment is rendered.
- The classic set:
dynamic,dynamicParams,revalidate,fetchCache,runtime,preferredRegion,maxDuration. dynamicforces static or dynamic rendering ('force-dynamic','force-static','error');revalidatesets the ISR lifetime.- In Next.js 16, with Cache Components enabled,
dynamic,dynamicParams,revalidateandfetchCacheare removed (the build rejects them); caching moves to 'use cache' andcacheLife. runtime = 'edge'andpreferredRegionare deprecated in 16; the default Node.js runtime is the recommendation. With Cache Components anyruntimeexport must go, even'nodejs', and 16.4 addsensureStaticto require a page or layout to stay static.
Clarifying questions expected:
- "Is Cache Components enabled in this project?" β it changes which exports are allowed.
- "Is the goal caching, timing, or hosting?" β different options serve each.
Code / implementation expected: Yes β the common exports and their Next.js 16 replacements.