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
Neither email build nor email start has a --port option, which means we cannot use the CLI to set a port the build should start on.
Background
Port 3000 may be already used by another service. Currently you have to manually edit package.json to change the start command to set a different port: next start -p 4000
Add the --port option to email build so that it can write the port into the start command inside package.json of the build output.
If possible, also add the --port option to email start so that a different port can be dynamically used rather than 3000 or the one set it package.json.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Goals
Neither
email build
noremail start
has a--port
option, which means we cannot use the CLI to set a port the build should start on.Background
Port
3000
may be already used by another service. Currently you have to manually editpackage.json
to change thestart
command to set a different port:next start -p 4000
Related but different discussion:
Proposal
Add the
--port
option toemail build
so that it can write the port into thestart
command insidepackage.json
of the build output.If possible, also add the
--port
option toemail start
so that a different port can be dynamically used rather than3000
or the one set itpackage.json
.Beta Was this translation helpful? Give feedback.
All reactions