Adding & Configuring a Custom Domain
Learn how to add a custom domain to your Vercel project, verify it, and correctly set the DNS or Nameserver values.Vercel provides all deployments with a vercel.app
URL, which enables you to share Deployments with your Team for collaboration. However, to provide greater personalization and flexibility to your project, you can instead add a custom domain. If you don't own a domain yet, you can purchase it with Vercel.
You can manage all domain settings related to a project in the Domains section of the Settings tab of the project, regardless of whether you are using apex domains or subdomains in your project. This document will guide you through both options.
Hobby teams have a limit of 50 custom domains per project.
The following steps provide an overview of how to add and configure a custom domain in Vercel:
On the dashboard, pick the project to which you would like to assign your domain.
Once you have selected your project, click on the Settings tab and then select the Domains menu item:
Selecting the Domains menu item from the Project Settings page. From the Domains page, click the Add Domain button:
The button to click on the domains page. Input the domain you wish to include in the project:
Text input on the add domain page to input your domain name in. If you add an apex domain (e.g.
example.com
) to the project, Vercel will prompt you to add thewww
subdomain prefix. For more information about why we recommend using awww
domain, see "Redirectingwww
domains".You can also use your custom domain as a wildcard domain by prefixing it with
*.
.If using your custom domain as a wildcard domain, you must use the nameservers method for verification.
To add a wildcard domain, use the prefix
*
, for example*.acme.com
.A wildcard domain being deployed. Once you have added your custom domain, you will need to configure the DNS records of your domain with your registrar so it can be used with your Project. The dashboard will automatically display different methods for configuring it:
- If the domain is in use by another Vercel account, you will need to verify access to the domain, with a TXT record
- If you're using an Apex domain (e.g. example.com), you will need to configure it with an A record
- If you're using a Subdomain (e.g. docs.example.com), you will need to configure it with a CNAME record
Both apex domains and subdomains can also be configured using the Nameservers method.
If you are verifying your domain by changing nameservers, you will need to add any DNS records to Vercel that you wish to keep from your previous DNS provider.
You can configure apex domains with an A record.
DNS configuration for an apex domain. You can configure subdomains with a CNAME record.
DNS configuration for a subdomain. If you choose to use a wildcard domain Vercel's nameservers will be automatically enabled for you on saving the domain settings. You will then be provided with the Vercel nameservers to copy and use with your registrar.
DNS configuration for Vercel nameservers. If the domain is in use by another Vercel account, you may be prompted to verify access to the domain. Note that this will not move the domain into your account, but will allow you to use it in your project. If you have multiple domains to verify, be aware that you can only set up one TXT record at a time, but you can modify it after the domain is transferred.
Verify domain access.
Once the domain has been configured and Vercel has verified it, the status of the domain will be updated within the UI to confirm that it is ready for use.


If a someone visits your domain with or without the "www" subdomain prefix, Vercel will attempt to redirect them to your domain. For more robust protection, you should explicitly add this domain and redirect it.
Was this helpful?