Why is HOST/PORT not included in forceRuntimeEnvVars
by default?
#1606
-
By default HOST and PORT environment variables are embedded in the build. That means unless one changes the configuration, changing the port a server runs on later is not possible. It's not a problem, changing the configuration is easy and some of the examples even do that. I'm just wondering if there is a use-case I'm missing and why it couldn't include those keys by default. |
Beta Was this translation helpful? Give feedback.
Answered by
fivethreeo
Apr 27, 2021
Replies: 1 comment
-
It is mostly to work as create-react-app does by default. So you can use PORT and HOST in client js without passing it from the server js. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fivethreeo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is mostly to work as create-react-app does by default. So you can use PORT and HOST in client js without passing it from the server js.