Deploy Next.js to Vercel

Deploy Next.js to Vercel

In this article we shall go over deploying Next.js project to Vercel serverless hosting platform via Github and Visual Studio Code editor terminal.

At first, sign up in?Vercel, after open Github repo with your project’s name and copy it’s link.

Then, go to your code editor terminal and type there:

git remote add origin?and paste the copied Github repo link, press enter

Type?git add .?press enter

Type?git commit -m initial?press enter

Type?git push -u origin main?press enter.

After go to your Vercel dashboard, click on?new project, choose your? GitHub repo?from the list and?import?it. Then press?deploy?button. If everything is ok in your Next.js code, you should see successful deployment result. If no, Vercel will show you the errors, that must be improved, after fixing them, try again. It’s simple.

要查看或添加评论,请登录

Edgar Hovhannisyan的更多文章

社区洞察

其他会员也浏览了