I only have a quick and simple question.
I wrote a script on Workers, which shows up a maintenance mode page. Now, the problem is that I applied it to all of my pages on my domain (and subdomains), because if my server goes down, it would be the best, that all of the pages will return the maintenance page. But the problem with this is that if I apply the Worker on the whole of my domain, it will immediately changes everything to the maintenance page, even if my server isn’t down. After I disconnect the route from my Worker, everything stands back, as it was before.
So, my question is that is there an opportunity, to activate/deactivate the route to/from my Worker ONLY if my server goes down OR may be there a remote script (curl, and API, you know…) which I could use to toggle the binding? By the way, the best thing would be if the system would detect the server’s outages and automatically bind the route to my worker and detach them when my server is on again.
Is it possible at all only with Workers? Or this might be accomplished via ‘Custom Pages’ on a higher Plan? What do you think?
Thank you if you can contribute with any ideas!! Laszlo