Last updated on February 6, 2023
1 min read
Assigning a Domain to a Git BranchLearn how to assign a domain to a different Git branch with this guide.
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:
Note: If you prefer to do this using the Vercel REST API instead, you can use the "Update a project domain" PATCH endpoint.