I'm working on a React Native app, and whenever I need to deploy to production on Play Store and App Store, I have to remember to manually switch the value of a string variable from 'dev' to 'prod', which defines the backend Url that the app is using. The problem is that if I forget to do so, the clients will use an app that points to the testing backend, which, of course, is terrible.
Question: Is there a manner to guarantee that I don't accidentally deploy the app with the testing backend ? I need a way to completely isolate the testing and production environments.