i found this while trying to make this work for my own app, and i did find i was able to make this work. like the original poster, i had followed all of the Cloudflare for SaaS instructions, including creating a fallback origin and a C NAME target, then adding a C NAME for the custom domain DNS pointing at my C NAME target, then a custom hostname. after all that, i was seeing a 522 and couldn’t figure out how to get my worker to pick up the requests and serve them. then i tried using “Workers Routes” (from dashboard home: Websites › , then Workers Routes in the left sidebar) and created a new HTTP route. then i used / as the route and chose my worker, and now the custom hostnames are correctly served by my worker.
1 Like