I have some workers routes defined in my `wrangler.toml` that work in production: ```toml routes = [

I have some workers routes defined in my
wrangler.toml
that work in production:
routes = [
    { pattern = "*/send", zone_id = "[id]" },
    { pattern = "*/login", zone_id = "[id]" },
    { pattern = "*/services", zone_id = "[id]" },
]

when I print the login url (using Hono via c.req.url) I correctly get https://foo.com/login when it's deployed to Cloudflare.

Locally though, with
wrangler dev
, I get http://send/login
  • it seems to be using the first route as the hostname, which is bizarre. Is this is known issue?
Was this page helpful?