Adding custom branch aliases
In this tutorial, you will learn how to add a custom branch alias (
staging.example.com) that will point to a specific branch (
staging) on your pages project.
Firstly, make sure that you’ve made a commit on the branch you’d like to set up an alias for - this will prompt a build in pages.
Next, add a custom domain under your Pages project for
To do this:
- Go to Pages .
- Select your project.
- Click on Custom domains and then Setup a custom domain
- Input the domain you’d like to use as the custom branch alias, such as
- Click on Continue and then Activate domain
In this instance, we’ll want to change
staging branch of your Pages project will be available on