Skip to content
You are currently viewing documentation for the canary channel of Next.js

typedRoutes

This API is currently experimental and subject to change.

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

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