Our mobile app communicates with a back end API. We want to be able to query a staged copy of the back end during development, and the live version during production.
We need to be able to dynamically configure our app to query stage.example.com during development, and example.com during production.
How can I easily manage these configuration parameters using Trigger.io forge?
One way to do this would be to use our parameters module
This would let you pass a flag into your code at build time which your JavaScript could then use to vary its action e.g.
In config.json:
In your JavaScript: