Hi all, I need your help with the Worker setup. We have a Worker with the wildcard for the hostname

Hi all, I need your help with the Worker setup. We have a Worker with the wildcard for the hostname in the routes in wrangler.toml:
routes = [ 
    { pattern="*/cdn/*", zone_id="xxxxxxId" }
]

The reason we have this setup is that we wanted the Worker to trigger for our clients’ custom domains dynamically connected via Cloudflare for SaaS. e.g.
example.org is our domain
client1.org CNAME cname.example.org -> client1 domain connected to ours
client2.org CNAME cname.example.org -> client2 domain connected to ours

The same worker used to trigger for requests to example.org, client1.org & client2.org. Recently, when publishing the Worker, we started to experience the error :
Route pattern must include zone name: example.org [code: 10022]

It looks like something has changed recently. What is the recommended Wrangler routes setup for the worker to trigger for every dynamically connected custom domain in Cloudflare?
Was this page helpful?