Domain & SEO Setup

How to connect a custom domain on Vercel and configure SEO for production.

Last updated:

Add a custom domain

  1. Go to your Vercel project → Settings → Domains
  2. Enter your domain (e.g., myblog.com and www.myblog.com)
  3. Vercel will display the DNS records you need to set

DNS configuration

At your domain registrar (GoDaddy, Cloudflare, Namecheap, etc.), add the following records:

TypeNameValue
A@76.76.21.21 (Vercel IP)
CNAMEwwwcname.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.com

Redeploy after updating this variable — it affects the sitemap, OG image URLs, and auth callbacks.

Google Search Console

  1. Go to Google Search Console
  2. Add your property (domain or URL prefix)
  3. Verify ownership via the DNS TXT record method
  4. Submit your sitemap: https://myblog.com/sitemap.xml

Google will begin crawling and indexing your blog within a few days.