This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Minimize configuration changes required to run dev server inside a container #7536
Closed
4 tasks done
Labels
Clear and concise description of the problem
At this moment it requires to adjust a number of configuration parameters in order to run dev server inside a container vs running it directly on your local setup. I believe many of these adjustments can be eliminated by following few things -
base
server.host
property to0.0.0.0
so that one need not to specify this explicitly.server.port
can be set to80
so that one need NOT to adjust this while running application in development vs production modes inside a k8s cluster.index.html
file at/
instead of value ofbase
config parameter. This will eliminate need of defining different url rewrite rules while running an application in development vs production modes inside a k8s cluster.hmr - Use
location.port
on the browser side forhmr.clientPort
which will set it to correct value no matter dev server is running behind a proxy or not. This will eliminate the need of specifyinghmr.clientPort
when dev server is running behind a proxy.The whole idea is that developers should focus on writing the code instead of figuring out appropriate values for different configurations parameters to run an application across different types of setups (local development, remote development (on a k8s cluster), production etc).
Suggested solution
Mentioned in the problem description
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: