Next.js 16+ · Option
typedRoutes
typedRoutes enables compile-time checking for statically known App Router links. It is a stable Next.js configuration option and requires TypeScript.
Last updated
- Since
- 15.5
Syntax
const nextConfig = { typedRoutes: true }In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
experimental.typedRoutesApp RouterTypeScriptLink