Skip to content
Important
Security Advisory: React2Shell & two new vulnerabilities
Find out more
You are currently viewing documentation for version 14 of Next.js.

typedRoutes (experimental)

Last updated June 8, 2023

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

Was this helpful?

supported.