-
Notifications
You must be signed in to change notification settings - Fork 149
Description
Hi there!
It would be great to be able to configure the host (not apiHost), not just the port when doing stencil start or other commands. Currently only the port can be specified in the config or cli options.
The issue with localhost is when doing development in docker, unless I'm missing something, there's no way to connect to the app from the host unless I put nginx in the same container to properly expose a port and proxy requests.
Vite suffers the same issue defaulting to localhost, but allows the customization of setting server.host in its config:
vitejs/vite#16522.
Defaults are specified here:
Line 3 in 3a8b0ef
| const config = { |
And overridden here with values from the stencil config file:
Line 11 in 3a8b0ef
| function buildManifest(srcManifest, options) { |
Thanks!
Brett