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
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.
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 theport
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 settingserver.host
in its config:vitejs/vite#16522.
Defaults are specified here:
stencil-cli/server/config.js
Line 3 in 3a8b0ef
And overridden here with values from the stencil config file:
stencil-cli/server/index.js
Line 11 in 3a8b0ef
Thanks!
Brett
The text was updated successfully, but these errors were encountered: