Pular para o conteúdo
Documentação do Next.js PT-BR
Esta página ainda está em inglês. A tradução ainda não foi feita; o conteúdo abaixo é o original de nextjs.org.

typedRoutes

Note: This option has been marked as stable, so you should use typedRoutes instead of experimental.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