SetupApril 22, 2026·1 min read

Connect a custom domain on Vercel

Point your apex and www records at Vercel, get auto-renewing HTTPS, and ship.

Add the domain in Vercel

  1. Open your project → Settings → Domains.
  2. Enter your domain (e.g. yourdomain.com) and click Add.
  3. Vercel will show the exact DNS records you need.

Use both the apex and www so visitors land on either.

TypeNameValue
A@76.76.21.21
CNAMEwwwcname.vercel-dns.com

Then in Vercel, set yourdomain.com as the primary domain and www to redirect to it (or vice versa — pick one and stick with it for SEO).

TLS certificates

Vercel issues and renews Let's Encrypt certificates automatically. There's nothing to configure. The first cert is usually live within a minute of DNS propagating.

Update your env var

Set NEXT_PUBLIC_SITE_URL=https://yourdomain.com in Settings → Environment Variables, then redeploy. This drives canonical URLs, sitemap entries, and OG tags.

Verify

  • Hit https://yourdomain.com/sitemap.xml — every URL should use your domain.
  • Hit https://yourdomain.com/feed.xml — RSS should resolve.
  • Run a Lighthouse audit — you should be in the 90s out of the box.