Skip to content
1 min read

Assigning a Domain to a Git Branch

Learn how to assign a domain to a different Git branch with this guide.
Table of Contents
    Choose a framework to optimize documentation to:

      Every commit pushed to the Production Branch of your connected Git repository will be assigned the domains configured in your project.

      In order to automatically assign a domain to a different branch, you can enter it in the Git Branch field of your Domain:

      A Custom Domain that is automatically assigned to the staging Git Branch.

      If you prefer to do this using the Vercel REST API instead, you can use the "Update a project domain" PATCH endpoint.
      Last updated on February 6, 2023