From the course: Next.js 14 from Scratch: Build a Real-World Project Using Next.js 14 and MongoDB

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Deploy to Vercel

Deploy to Vercel

All right, guys, so now we're going to deploy to Vercel. So you just need to log into Vercel with your GitHub account. And you should see a dashboard like this, where you can add a new project. And all we have to do is bring it over from GitHub. So you do have to push the project to GitHub. So this is my repo right here. And to do that, I'm sure just about all of you know how to do that. But if not, then just go to your project. And if you haven't initialized a repository yet, Just do git init. Then you want to git add all. So that will add all the files to your staging area. And then you can do git commit dash m with a message like initial commit, so something like that. And then once you have it in your local repo, you want to go to your GitHub account and add a new repository. Fill in the name. It can be public or private. And then once you do that, you'll see some commands. And one of those is going to be get remote add origin, and then whatever your remote repository is. So…

Contents