npx create-next-app {파일명}
cd {파일명}
폴더의 루트경로에다가 next-env.d.ts 파일을 생성한다.
npm install --save-dev typescript @types/react @types/node
이 파일이 있어야 그 다음에 실행했을 때 tsconfig.json파일을 알아서 생성해준다.
nextjs에 맞는 typescript를 설정해 주는 듯 하다.
실행하면 알아서 typescript를 감지하고 tsconfig.json파일을 깔아준다.
We detected TypeScript in your project and created a tsconfig.json file for you.
이 문구를 보면 알 수 있다.