Programatically switch resources (from production to dev) for all blocks in one app

  1. My goal:
    I want to switch all resource query blocks calling API's to switch from the production to the test api (different endpoint or different credentials, saved in resources )

  2. Issue:
    I cant find a way to set a toggle or switch in the app that would change which resources given blocks rely on, have to switch them by hand one by one, queries keep working tough

Hi @mascaritas,

Have you set up your staging and production environments in your resource?

Once you have your 2 environments (or more) in your resource, go to your app and write a query with that resource. From there you can switch between the environments using the bottom left.

You can find more about it here.

1 Like