Vercel is the company behind Next.js and offers the most optimized deployment experience.
Quick Deploy
- Push your code to GitHub/GitLab/Bitbucket.
- Import the repository on vercel.com.
- Vercel auto-detects Next.js and configures everything.
Features
- Automatic deployments: Every push triggers a build.
- Preview deployments: Every PR gets a unique URL.
- Edge Network: Global CDN with edge caching.
- Serverless Functions: Route Handlers and Server Actions.
- Analytics: Built-in performance monitoring.
Environment Variables
Set them in the Vercel dashboard:
DATABASE_URLNEXTAUTH_SECRETAPI_KEY
For local development, use .env.local (not committed to git).
Build Command
Vercel runs:
bashnext build
Output is automatically optimized for the Vercel platform.