I have created a react app with create-react-app. I'm now in a phase where i want to deploy to different environments.
I am using a .env and .env.local file for storing information my app needs to run properly.
The env.local is for my local development. I would like to make the .env file variable so that i can change the values during my build or release phase. When i use npm run build, i want to make build for a specific environemnt using specific environment values.
I am using a YAML file(Azure Devops) for setting up my build and release process.
So how can i make the values in my .env file variable so that i can set my react variable based on the environment i am deploying to?