typedRoutes
Last updated August 19, 2025
Note: This option has been marked as stable, so you should use
typedRoutesinstead ofexperimental.typedRoutes.
Support forstatically typed links. This feature requires using TypeScript in your project.
next.config.js
/**@type{import('next').NextConfig} */constnextConfig= { typedRoutes:true,}module.exports= nextConfigWas this helpful?