Launch at another port if the current is taken #13487
todortotev
started this conversation in
Ideas
Replies: 1 comment 7 replies
-
Next.js automatically uses the next available port already. If 3000 is taken, it tries 3001 and so on, until one free port is found. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Excuse me if I'm missing something, but is it possible to have a command-line option if the port is taken? Seen it @ other apps so I thought it would come in handy.
For example, if port 3000 is taken, you get a message - Port XXXX is taken, do you want to use another port? Y/n
Currently, if the port is taken you get an error which also is okay, but I guess it would be even better if you can just click Y and get the app launched at a different port.
Beta Was this translation helpful? Give feedback.
All reactions