Remove URL route for a worker being used via a service?

I’ve got a worker, let’s call it Backend, that is being used via service bindings by Frontend. This works fine, but I was curious. Looking at the Backend settings, can I disable the Route? That way, in theory, it could never be called externally, and only be usable internally?

Yep, this is a perfect example use case and should work without issue. If you’re using wrangler, you can disable the workers.dev route by simply setting workers_dev = false in your wrangler.toml.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.