-
|
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=4000If 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
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
PORTto 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
scriptspart ofpackage.json.