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

Hi, Is there a way to support this ?
8 Replies
Vero | OOO Public Holiday
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
samthinkeoOP14mo ago
Thanks for your time !
w3bcode
w3bcode12mo ago
@Vero 🐙 May I know the rough timeline on when it will be available?
Vero | OOO Public Holiday
Hi. It's not planed, so no timeline yet, sorry
w3bcode
w3bcode12mo 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 | OOO Public Holiday
Sorry for the delay. I've asked one of our champs to help you in the thread
w3bcode
w3bcode12mo ago
No worries. Meanwhile I learned a whole lot about DNS error codes 😅
Vero | OOO Public Holiday
:bibicat:

Did you find this page helpful?