-
How can I specify a port of my choice in a create-react-app project? I want to run the project on port |
Beta Was this translation helpful? Give feedback.
Answered by
harshcut
Dec 9, 2021
Replies: 1 comment
-
You can specify a environment variable named PORT=4000 If you don't want to set the environment variable, another option is to modify the "start": "set PORT=4000 && react-scripts start" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can specify a environment variable named
PORT
to specify the port on which the server will run.If you don't want to set the environment variable, another option is to modify the
scripts
part ofpackage.json
.