DEV Community

Faisal Ahmed
Faisal Ahmed

Posted on

Change PORT on react project

1st way:

  • create .env file
  • and write: PORT=3010

Image description

2nd way:

  • in the package.json file
  • change: "start": "react-scripts start",
  • and type : "start": "set PORT=3020 && react-scripts start",

Image description

Top comments (0)