Domain & SEO Setup
How to connect a custom domain on Vercel and configure SEO for production.
Last updated:
Add a custom domain
- Go to your Vercel project → Settings → Domains
- Enter your domain (e.g.,
myblog.comandwww.myblog.com) - Vercel will display the DNS records you need to set
DNS configuration
At your domain registrar (GoDaddy, Cloudflare, Namecheap, etc.), add the following records:
| Type | Name | Value |
|---|---|---|
| A | @ | 76.76.21.21 (Vercel IP) |
| CNAME | www | cname.vercel-dns.com |
DNS changes typically take 1–48 hours to propagate worldwide. Vercel will show a green checkmark when verified.
Tip
Use Cloudflare as your DNS provider for faster propagation and free DDoS protection. Set the proxy status to DNS only (grey cloud) for Vercel deployments to avoid SSL conflicts.
Update environment variables
Once your domain is live, update NEXT_PUBLIC_APP_URL in Vercel to your production domain:
bash
NEXT_PUBLIC_APP_URL=https://myblog.comRedeploy after updating this variable — it affects the sitemap, OG image URLs, and auth callbacks.
Google Search Console
- Go to Google Search Console
- Add your property (domain or URL prefix)
- Verify ownership via the DNS TXT record method
- Submit your sitemap:
https://myblog.com/sitemap.xml
Google will begin crawling and indexing your blog within a few days.