This page is also available as Markdown at /docs/app/api-reference/config/next-config-js/typedRoutes.md. For an index of all documentation, see /docs/llms.txt.
typedRoutes
Last updated April 10, 2026
Note: This option has been marked as stable, so you should use
typedRoutesinstead ofexperimental.typedRoutes.
Support for statically typed links. This feature requires using TypeScript in your project.
next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
typedRoutes: true,
}
module.exports = nextConfig
Was this helpful?