Skip to content

Option to Change Stencil Dev Host #1242

@woodbrettm

Description

@woodbrettm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions