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
- Open your project → Settings → Domains.
- Enter your domain (e.g.
yourdomain.com) and click Add. - Vercel will show the exact DNS records you need.
Recommended DNS setup
Use both the apex and www so visitors land on either.
| Type | Name | Value |
|---|---|---|
| A | @ | 76.76.21.21 |
| CNAME | www | cname.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.