typedRoutes

Experimentelle Unterstützung für statisch typisierte Links. Diese Funktion erfordert die Verwendung des App Routers sowie TypeScript in Ihrem Projekt.

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

module.exports = nextConfig