Route pattern must include zone name [code: 10022]

I am using Cloudflare for SAAS so I have customer domains point to like customers.mydomain.com
When I deploy my worker I have the routes like the following in my config file:
"routes": [
  {
    "pattern": "*/hello-world*",
    "zone_name": "mydomain.com"
  }
]


I get the error that Route pattern must include zone name: mydomain.com [code: 10022] when I am trying to deploy. The problem is if I change the pattern to include the mydomain.com it won't catch for my customer's domains.

What can I do?
Was this page helpful?