You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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? 🤷
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
changed the title
port: change it from 5000 to 3000
Change default port from 5000 to 3000Nov 4, 2021
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
...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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