Configuring Your Domain
By default, your site is accessible at a .vercel.app subdomain. To use your own domain (e.g., www.yourbrand.com), follow these steps.
Step 1: Purchase a domain
If you do not already own a domain, purchase one from a registrar such as GoDaddy, Namecheap, or Google Domains.
Step 2: Add the domain in Vercel
- Go to your Vercel project dashboard
- Click Settings > Domains
- Enter your custom domain and click Add
- Vercel will display the DNS records you need to configure
Step 3: Update your DNS records
At your domain registrar, add the records Vercel provides. Typically this is:
- An A record pointing to
76.76.21.21 - A CNAME record for
wwwpointing tocname.vercel-dns.com
Step 4: SSL certificate
Vercel automatically provisions and renews an SSL certificate for your custom domain. No action is required on your part — your site will be served over HTTPS.
Step 5: Update your environment variable
Set the NEXT_PUBLIC_SITE_URL environment variable in Vercel to your new domain (e.g., https://www.yourbrand.com). This ensures all internal links, sitemaps, and Open Graph URLs reference the correct domain.
Troubleshooting
- Domain not resolving — Double-check your DNS records and wait for propagation
- SSL error — Vercel retries certificate issuance automatically; allow up to one hour
- Redirect loop — Ensure your registrar is not forcing its own redirect on top of Vercel
Was this article helpful?