# Deploying Next.js with Vercel

[Jamstack agency founder on the rise of Next.js and Vercel](https://sacra.com/research/jamstack-agency-founder-nextjs-vercel/)

[Login to Vercel through Github](https://vercel.com/login)

[Read this Document](https://vercel.com/guides/deploying-nextjs-with-vercel)

As you can see you they are two ways to deploy to Vercel Cloud:

## Built-in CI/CD from GitHub

[Read this document](https://nextjs.org/docs/deployment)

[Follow this step by step tutorial](https://nextjs.org/learn/basics/deploying-nextjs-app)

Now evertime you will make a commit and push it to Github it will be deployed.

[How to set up Continuous Deployment for NodeJS Projects using Vercel](https://blog.devgenius.io/how-to-set-up-continuous-deployment-for-nodejs-projects-using-vercel-514878d3f52a)

## Manual Deployment through [CLI](https://vercel.com/cli)

npm i -g vercel

Now go to the Next.js project directory and give the following command to deploy to cloud:

vercel 

[CLI Docs](https://vercel.com/docs/cli)

## Project config with vercel.json

[vercel.json](https://vercel.com/docs/project-configuration)

[example](https://github.com/grand-stack/grand-stack-starter/blob/master/vercel.json)

[Rewrite Example](https://stackoverflow.com/questions/73607646/problems-mounting-a-vercel-nextjs-project-as-a-subdirectory-of-a-different-verce)



