Cloudflare DevelopersCD
Cloudflare Developers14mo ago
3 replies
Armand

Custom URL for preview deployments

Hey! Is there a way to use my custom domain instead of .pages.dev for preview URL?

I'm using Clerk for auth and when I test my production preview via CF Pages (with a *.pages.dev URL), Clerk fails to load because it's not on my custom domain.

I want *.pages.dev to be *.preview.mydomain.com

Should I use a reverse proxy or maybe a CF Snippet to make this works?
Was this page helpful?