I am using create react app to bootstrap my app.
I have added two .env files .env.development and .env.production in the root.
.env
.env.development
.env.production
Make sure your .env file is in the root directory, not inside src folder.