`pages.dev` is limited compared to custom domain

We have enabled CF Fonts & CF Image Resizing on a zone, which also is setup as a custom domain for our pages project. That works fine for the main production branch. However accessing the preview deployments at hash.pages.dev, both system do not work. What is the best way to make them work with the pages.dev urls, or get individual preview urls on the custom domain automatically?
4 Replies
kian
kian14mo ago
Unfortunately there is no way to do either. You can setup custom domains that point to a preview, but it's a manual process.
alex (he/him)
alex (he/him)OP14mo ago
Ok I think I could workaround that. But what is the way to disable the pages.dev url then?
Hello, I’m Allie!
You can Redirect it
Redirecting *.pages.dev to a Custom Domain · Cloudflare Pages docs
Learn how to use Bulk Redirects to redirect your *.pages.dev subdomain to your custom domain (example.com). You may want to do this to ensure that …
alex (he/him)
alex (he/him)OP14mo ago
Hmm not the best DX. Can I also make it so that it redirects to the same subdomain, because now everything redirects to the production version?
Want results from more Discord servers?
Add your server