--

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

--

--