Pages subdomain

Connect with the Workers Community on the DevHello,
I need your help with Cloudflare Pages.

I currently have an application running on Cloudflare Pages with
main => myapp.domain.com

and I would also like to have my preview branches available under this domain name.
for example
develop => develop.myapp.domain.com

Currently, I can’t find in the documentation how to link this to my ‘myapp’ subdomain.

Do you have any ideas for a solution?
Paul.

1 Like

thanks for your reply,

ok for now it’s still a manual action to do ?
it’s not included in pages workflow, with random hash generation and auto registration domaine ?

It’s a manual action; you need to change the CNAME yourself (and ignore the warning the dashboard gives you). But once you do it, it works perfectly.

1 Like

thanks, could be a nice feature to have in futur

ok now my subdomain

preview.myapp.mydomain.com

is timeout with 522 from cloudflare ? do you know why ?

is a CNAME to .pages.dev
main => myapp.domain.com

is also a CNAME to develop.page.dev
develop => develop.myapp.domain.com

Did you add it to the Pages project as a custom domain? Don’t create the CNAME yourself. Add it to the project and then modify the CNAME that got created.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.