First create a file named .env.staging and put your necessary environment variables there.

Secondly inside your package.json file inside the scripts add the following line

"start:staging": "NODE_ENV=staging react-scripts start",

Then if you want to run your application just run it like this

npm start:staging

Software Engineer | https://www.mohammadfaisal.dev/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store