Is there a way to set different environment variables for different routes the worker executes on? My use case would be a language redirect worker that redirects from domain.tld to domain.tld/en/, domain.tld/de/ and so on based on
I want to activate this worker on multiple domains where I can set different website urls, available languages and a default languages for each website.
I guess what I could do is check the
Request domain and change the variables based on that, but I would prefer a more clean solution.
Thank you for your answers!