Wildcard support for preview build on Pages *.mydomain.com -> *.project.pages.dev

Hi, Is there a way to support this ?
8 Replies
Vero | Out of Office
Hey, no, Pages currently don't support Wildcard domains. As a workaround you could run a Cloudflare Worker on a wildcard route that proxies the Pages project manually, but you'd need a Workers Paid plan to do more than 100,000/day of those requests. In the future, Snippets will help users more easily and affordably implement these kinds of features themselves: https://blog.cloudflare.com/snippets-announcement
samthinkeo
samthinkeoOP15mo ago
Thanks for your time !
w3bcode
w3bcode13mo ago
@Vero 🐙 May I know the rough timeline on when it will be available?
Vero | Out of Office
Hi. It's not planed, so no timeline yet, sorry
w3bcode
w3bcode13mo ago
Okay, no worries. Can you point me to some docs or example on how to achieve this with worker ? https://discord.com/channels/595317990191398933/1235046580864942161 I tried to implement this way
Vero | Out of Office
Sorry for the delay. I've asked one of our champs to help you in the thread
w3bcode
w3bcode13mo ago
No worries. Meanwhile I learned a whole lot about DNS error codes 😅
Vero | Out of Office
:bibicat:

Did you find this page helpful?