Skip to content

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.

Note: If you prefer to do this using the Vercel REST API instead, you can use the "Update a project domain" PATCH endpoint.