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

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