GuidesDeployment
Custom Domains
Set up custom domain and SSL
Custom Domains
Add Domain in Vercel
- Go to Settings → Domains
- Enter your domain:
yourdomain.com - Click Add
Configure DNS
Add these records to your DNS provider:
A Records (for root domain):
Type: A
Name: @
Value: 76.76.21.21CNAME (for www):
Type: CNAME
Name: www
Value: cname.vercel-dns.comVerify Domain
Wait 24-48 hours for DNS propagation. Vercel automatically provisions SSL certificate.
Redirect www to Root
In Vercel Settings → Domains, set redirect:
www.yourdomain.com → yourdomain.comSubdomains
For app.yourdomain.com:
Type: CNAME
Name: app
Value: cname.vercel-dns.comSSL Certificate
Vercel automatically provides free SSL from Let's Encrypt. No configuration needed.
Environment Variables
Update site URLs:
NEXT_PUBLIC_SITE_URL=https://yourdomain.com
BETTER_AUTH_URL=https://yourdomain.comDNS Providers
Popular DNS providers: Cloudflare, Namecheap, GoDaddy, Route 53
Cloudflare
If using Cloudflare:
- Set SSL/TLS mode to Full
- Disable proxy (orange cloud) for verification
- Re-enable after verification
Troubleshooting
Domain Not Verifying
- Check DNS records with
dig yourdomain.com - Wait up to 48 hours
- Ensure no conflicting records
SSL Certificate Not Provisioning
- Verify DNS is correct
- Remove any existing CAA records
- Contact Vercel support