How to use cloudflare saas custom hosts feature with worker?
Hi, I have a worker, which can show pages based on unique sub domain, like customer1.mydomain.com, customer2.mydomain.com etc. now my customer have their own domain which they can add from my site, which trigger the worker and the worker will add the custom hostname to my domain (saas) . customer will have to add a cname from their dns like cname => customerdomain.com => (customer1.mydomain.com), I want to do something like that, But I'm not sure I can do it with worker. Since I can't point worker (subdomain.worker.dev) address via cname on my domain (according to some article I read from cloudflare community post), that's mean I can't add a fallback domain on saas. to add a fallback domain I will need to use A/CNAME record, which not possible for workers, anyone can give me any suggestion? that would be great
2 Replies
Workers as your fallback origin · Cloudflare for Platforms docs
Learn how to use a Worker as the fallback origin for your SaaS zone.
@Cloudflare (Server Owner) thanks.