How to setup a custom domain for a develop branch?
I'm trying to set a custom domain on the development branch, so I have create a CNAME record for develop.gab-servizi.pages.dev and it is propagated yet.
But when I reach the website via the custom domain (test.gabservizi.it) it is propagated to the master branch instead the develop.
If I navigate to develop.gab-servizi.pages.dev the content shown is from the develop branch as it has to.
What I am missing out?
The test:
- Navigating to develop.gab-servizi.pages.dev you will be redirect to test.auth.gabservizi.it
- Navigating to test.gabservizi.it you will be redirect to auth.gabservizi.it that is a master branch behaviour.
2 Replies
I've just read that it is possible only with Cloudflare DNS, is there a way to bypass it?
You have to be using Cloudflare DNS for this to work.