How-to
Assigning a custom domain to an environment
Learn how to add a custom domain to your Vercel project, verify it, and correctly set the DNS or Nameserver values.Table of Contents
- From the dashboard, pick the project to which you would like to assign your domain and select the Settings tab.
- Click on the Environments menu item.
- Select the environment to which you would like to assign your domain. Users on Pro and Enterprise plans can create custom environments to which they can assign custom domains.
- Once you've added your domain, you will need to configure the DNS records of your domain with your registrar so it can be used with your environment:
- 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.
Last updated on December 20, 2024
Was this helpful?