"This route already exists." while not existing
So, im trying to make an worker, but i get "This route already exists." while it doesn't exist, only in a whole different worker.
6 Replies
only in a whole different worker.so it does You can't have 2 Workers on the same route, it wouldn't know where to go If you want to chain Workers, service bindings are your friend - https://developers.cloudflare.com/workers/platform/bindings/about-service-bindings/
but i need both of them to go to
*.domain.com/*
and no, i don't want to do thatWhat are you trying to achieve exactly?
basically, one of the workers puts an maintenance on every pages, the other one puts it on one single page, and in that worker's code, i want to only change one line
(the url to block)
Why use 2 workers for this rather than just one?
But your options are to only add the route for the page you want the maintenance page on, use service bindings or use 1 Worker
thanks