nextjs / latest / app / api-reference / next-config-js / typedroutes.html

typedRoutes (experimental)

Experimental support for statically typed links. This feature requires using the App Router as well as TypeScript in your project.

/** @type {import('next').NextConfig} */
const nextConfig = {
  experimental: {
    typedRoutes: true,
  },
}
 
module.exports = nextConfig

© 2024 Vercel, Inc.
Licensed under the MIT License.
https://nextjs.org/docs/app/api-reference/next-config-js/typedRoutes