A domain has two halves, and both must be set
- Colin Li
Buying a domain registers a name. It does not connect that name to your site, and Vercel is not informed of it.
Both halves have to be configured. Configuring one and not the other is a common cause of a domain that does not work.
Half one, in Vercel: add both forms of the name, the bare name and the www form, then set which one is the primary address. Vercel redirects the other to it. If you skip this, one of the two forms returns a 404.
Half two, at the DNS: add the records Vercel specifies. The DNS is not always the company you bought the name from. It is wherever the domain's nameservers point. If you bought the domain through Vercel, this half may already be done.
Check which applies before looking for a DNS screen.
Use the values Vercel displays after you add the domain. Those values change, so do not copy them from another source.
How you know it worked: Vercel's Domains screen shows both forms as valid; the name resolves with and without www, one redirecting to the other; and the browser does not show Not Secure.
The certificate that removes the Not Secure warning is issued automatically. You do not buy or install one.