Currently, I work with three different environnements :
I use an array with all three environnements in it and depending on where I want the build to be available, i just switch my environnement variable with the index of the array I want.
In order not to modify data in production, I use this array to modify the color of an element in my UI and then it feels a lot safer.
↧
Automatically change constants between environments
↧