Is it possible to have no routes associated to a worker?
I have a worker that will act as a consumer for a queue. It will also have a cron function. As such it does not need a route. I have removed the route from the dashboard, but it gets re-added on deployment.
Does anyone know, is there a setting in the wrangler file to tell CF not to generate an active route?
Many thanks...
2 Replies
You can use
workers_dev = false
to disable the default worker.dev route, if that's what you're talking about
Enables use of *.workers.dev subdomain to test and deploy your Worker. If you have a Worker that is only for scheduled events, you can set this to false. Defaults to true.Can't delete it entirely, but it'll stay disabled
Thanks Chaika - I will try that out now...
Perfect - just what I was looking for 🙂