Replies: 1 comment
-
Opened a PR: #44627 For now, you can add a post-build script that replaces |
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
-
Describe the feature you'd like to request
When building with
output: 'standalone'
, generated server.js has hardcoded 'localhost' as hostname. It should be made configurable via env variable, similar toPORT
.next start
has--hostname
argument, but same isn't possible with generatedserver.js
.Describe the solution you'd like
I'd like to start server using
HOSTNAME=x.x.x.x
env variable, and running generated standaloneserver.js
would listen to that hostname.Describe alternatives you've considered
This prevents us to use standalone mode, and we must start the server using
next start
command.Beta Was this translation helpful? Give feedback.
All reactions