Next.js 13 버전에 추가된 라우터로 page router를 대체한다.
next.js를 최신버전으로 설치해준다.
npx create-next-app@latest 프로젝트명
그러면 질문 항목 중 app router를 사용할 것이냐는 항목이 나오는데 yes를 선택해주면된다.
{
"extends": ["next/core-web-vitals", "next/typescript"],
"rules": {
"@typescript-eslint/no-unused-vars": "warn", // 사용하지 않는 변수에 대해 경고표시
"@typescript-eslint/no-explicit-any": "off" // any 타입을 명시적으로 지정 가능
}
}