Back

Deployment to Vercel

Vercel is made by the Next.js team, so deploying is almost zero setup. Connect your GitHub repo and every push to main deploys automatically, while every pull request gets a preview URL.

# Option 1: Dashboard
# vercel.com -> New Project -> Import GitHub repo -> Deploy

# Option 2: CLI
npm i -g vercel
vercel          # preview deploy
vercel --prod   # production deploy

# Add secrets in Project Settings -> Environment Variables
# NEXT_PUBLIC_ prefix = visible in the browser

Roadmap