More convenient resource switching when using multiple environments

Now that multiple environments beyond production and staging are possible it would be great to not need the following JSQuery workaround (suggested by @victoria in March 2021) to switch between data resources for the current environment. I would like to run the same app and the same queries and be able to toggle seamlessly between viewing production and staging data.

if (select1.value == "production") {
} else if (select1.value == "staging") {
} else if (select1.value == "dev") {

Right now I have 27 queries and a multi-page app of over a dozen pages. So maintaining 54 queries and adding that workaround is quite cumbersome.

Is the feature on the roadmap?


The whole point of multiple environments is that you put in the different credentials into the resource.

Therefore you don't need different queries