By default, when creating a react app with the create-react-app tool, the local server is run on the port 3000. To change it, create a .env
file at the root of the project, and type PORT=8080
in it.
Your app now listens on the port 8080.
I create internet applications. This is the place where I publish my challenges/findings. Hope it helps.
By default, when creating a react app with the create-react-app tool, the local server is run on the port 3000. To change it, create a .env
file at the root of the project, and type PORT=8080
in it.
Your app now listens on the port 8080.
Comments
Post a Comment