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
  1. From the dashboard, pick the project to which you would like to assign your domain and select the Settings tab.
  2. Click on the Environments menu item.
  3. 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.
  4. 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 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 18, 2024