문서
App Router 사용하기
typedRoutes

typedRoutes

정적으로 타입이 지정된 링크에 대한 실험적 지원입니다. 이 기능을 사용하려면 프로젝트에서 App Router와 TypeScript를 함께 사용해야 합니다.

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