Deploy to Vercel
Deploy your Next.js application to Vercel.
Prerequisites
- GitHub/GitLab/Bitbucket repository
- Vercel account
Quick Deploy
Via Vercel Dashboard
- Go to vercel.com/new
- Import your Git repository
- Configure environment variables
- Click Deploy
Via CLI
Loading code block...
Environment Variables
Required Variables
Loading code block...
Setting Variables via CLI
Loading code block...
Project Configuration
Loading code block...
Database Setup (Neon)
1. Create Neon Project
Loading code block...
2. Get Connection String
Loading code block...
3. Configure Prisma
Loading code block...
4. Run Migrations
Loading code block...
CI/CD with GitHub Actions
Loading code block...
Domain Configuration
Add Custom Domain
Loading code block...
DNS Configuration
Add these records to your DNS provider:
| Type | Name | Value |
|---|---|---|
| A | @ | 76.76.21.21 |
| CNAME | www | cname.vercel-dns.com |
Edge Functions
Loading code block...
Middleware
Loading code block...
Monitoring
Enable Analytics
Loading code block...
Error Tracking with Sentry
Loading code block...
Rollback
Loading code block...