Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default port from 5000 to 3000 #680

Merged
merged 1 commit into from Nov 4, 2021
Merged

Change default port from 5000 to 3000 #680

merged 1 commit into from Nov 4, 2021

Conversation

kud
Copy link
Contributor

@kud kud commented Oct 29, 2021

Due to a conflict with AirPlay, it could be interesting to change the default port: https://developer.apple.com/forums/thread/682332

related: #672
info: https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

@kachkaev
Copy link

kachkaev commented Nov 3, 2021

3000 is used by Next.js and CRA by default, which means that ports will often clash in practice. Having said that, I don’t know what alternative number would be a clear winner.

Nice-looking ports like 6000, 9000 or 10000 are all used for something else, according to Wikipedia. Going for 30000 would require folks to count zeros and is therefore error-prone. Maybe 3030? 🤷

@leo
Copy link
Contributor

leo commented Nov 4, 2021

I don't think it will be common that people will run tools like Next.js and CRA and the same time as serve, but if they do, --listen <port> can be used for defining a custom one.

3000 as the new default sounds good to me!

@leo leo changed the title port: change it from 5000 to 3000 Change default port from 5000 to 3000 Nov 4, 2021
@leo leo merged commit 168d4b2 into vercel:main Nov 4, 2021
@leo
Copy link
Contributor

leo commented Nov 4, 2021

Thank you!

@kud kud deleted the patch-1 branch November 4, 2021 12:48
@kud
Copy link
Contributor Author

kud commented Nov 4, 2021

My pleasure 😊

@mariojfduarte
Copy link

If you have a Docker Swarm mode cluster set up with traefik as a load balance to do wtv, don't forget to change alll your docker files that use serve default port in order to prevent Bad Gateway connection errors.

`
...
RUN yarn global add serve
...
CMD serve -s -p 5000 build
...

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants