Custom Branch Domain with Cloudflare Access fails

Hello everyone 🙂

As the title already says, if I want to access a preview deployment secured by Cloudflare Access. My branch on GitHub is called dev so I called the custom domain dev.<mydomain>
  • as soon as I visit dev.<mydomain> I have to enter my email and I receive a one-time-pin to access to preview deployment.
s soon as I enter the pin I am redirected to a site with an error. Better said I am redirected to an 404 because the wierd url is not found (see attached screenshot). Accessing the deployment via its hash or the "normal" pages.dev url seems to work completely fine.

Am I doing something wrong ?

Thanks,
David
Was this page helpful?