DEPLOY NEXT.JS APP TO VERCEL

Someone want to me make a post for explain how to deploy NEXT.JS application to Vercel. Base on require of them I will make a post. Hope, it will help something to you.

I. Initial Next.js app or you can clone my shopping cart repository

create-next-app shopping-cart

II. After creating your application, commit them to Github.

git add .
git commit -m "Complete project"

III. Create project in Vercel

IV. Import project or you can search by name of repository.

V. Configure application

  • You can add env as MONGOURI or SERECTKEY, ... in box Environment Variables.
  • Override command of application in box Build and Output Settings

VI. Deploy and done

  • Enjoy your time 🪴

Thank you for reading.

21