tnqlscho 95 2023. 2. 1. 02:38

이번 next.js를 이용한 프로젝트는 빠른 설정을 위해 자동 설정으로 진행했다.

 

🟣 npx으로 설치 (TypeScript로 진행)

npx create-next-app@latest --typescript

🟣 yarn으로 설치 (TypeScript로 진행)

yarn create next-app --typescript

🟣 설치 후 - 개발서버 시작 (http://localhost:3000)

//npm 일때
npm run dev

//yarn 일때
yarn dev

🐣 이렇게 하면 간단하게 next.js로 프로젝트를 시작할 수 있다..!

 

next.js docs 참고

https://nextjs.org/docs?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app