I run the react application using npm start which in package.json is defined as "start": "react-scripts start -o". in the js code I have
const backendUrl = 'hardCodedUrl';
I want this property to be passed as CLI argument. like:
npm start url=newUrl
and read this in the javascript code at runtime to be able to set backendUrl. How Can I do this?