Preview deployments under sub-domains
Hey folks!
I created a
staging.example.com
sub-domain for my preview deployment instead of using web.pages.dev
domains and followed this: https://community.cloudflare.com/t/subdomain-for-branch-not-working-error-code-522/475716
It now works, but as I use zero trust I got this error after entering my email to get the zero trust code. Any hint on what's going on?2 Replies
I followed this:
https://developers.cloudflare.com/pages/how-to/custom-branch-aliases/
Same thing, it doesn't seems to work alongside Access (via mail code)
Cloudflare Docs
Add a custom domain to a branch · Cloudflare Pages docs
In this guide, you will learn how to add a custom domain (staging.example.com) that will point to a specific branch (staging) on your Pages project.
[EDIT]: Solution - Add the sub-domain to he Access policy as well!