May 27, 2022
When running the app locally, we have to specify the env file in the npm start command. For example:
"scripts": { "start:staging": "env-cmd -f .env.staging react-scripts start", "start:prod": "env-cmd -f .env.prod react-scripts start"}
When running the app locally, we have to specify the env file in the npm start command. For example:
"scripts": { "start:staging": "env-cmd -f .env.staging react-scripts start", "start:prod": "env-cmd -f .env.prod react-scripts start"}