Monday, March 21, 2022

npm start on custom port

In package.json (don't need to redo npm install) -  

  "scripts": {

    "start": "PORT=9999 react-scripts start", //add or replace with this line
   
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },

No comments:

Post a Comment