🧱 언어 모음집/Next.js
[Next.js] Github에 Push
은돌1113
2022. 2. 26. 18:32
728x90
배포하기 전에 Next.js 앱을 아직 Push 하지 않은 경우 Github에 Push 해보겠습니다.
이렇게 하면 배포가 더욱 쉬워 집니다.
- 개인 Github계정에서 nextjs-blog라는 repo을 생성합니다.
- repo는 public(공개) 또는 private(비공개) 할 수 있습니다. README나 다른 파일로 초기화 할 필요가 없습니다.
- Next.js 앱에 대해 로컬로 git repo를 초기화 하지 않았다면 초기화 하세요.
git init
- Next.js 앱을 Github repo에 Push 합니다. (다음 명령어로 Push 할 수 있습니다.)
git remote add origin https://github.com/<username>/nextjs-blog.git
git push -u origin main
Learn | Next.js
Production grade React applications that scale. The world’s leading companies use Next.js by Vercel to build pre-rendered applications, static websites, and more.
nextjs.org
728x90