In my app I have to use different API endpoints depending on the type of build. Up till now I was always changing the api variable manually before each build, but now I wan't to see if this can be automated. Has anyone come up with a simple solution to this? I imagine this to be a check when the app is bundling, and if say the build is 'release', the api variable should be X.