Reactjs – How to change the port in API after `npm run build`
client/ scriptWhichMakesApiCall/ await axios.get("http://localhost:${REACT_PORT}/api/product-category"); Doing "npm run build". REACT_PORT value is baked into build. server/ express which dynamically assigns itself some PORT. What modificatoins can i make to my codebase, so that my build react app makes call to the…