Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to Change Stencil Dev Host #1242

Open
woodbrettm opened this issue Dec 1, 2024 · 0 comments
Open

Option to Change Stencil Dev Host #1242

woodbrettm opened this issue Dec 1, 2024 · 0 comments

Comments

@woodbrettm
Copy link

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:

const config = {

And overridden here with values from the stencil config file:

function buildManifest(srcManifest, options) {

Thanks!
Brett

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant