Skip to content

Allow passing --host flag to CLI #367

@brunobely

Description

@brunobely

Clear and concise description of the problem

As a developer using Histoire I want to be able to access the playground from other devices on my network, which is done in Vite by passing --host to the CLI when running dev.

Suggested solution

When running histoire dev, I see the following output:

Collect stories start all
  ➜  Local:   http://localhost:6006/
  ➜  Network: use --host to expose

Which makes it seem like it would be trivial to accept --host as a flag and then pass it through to Vite.

Alternative

No response

Additional context

I've tried histoire dev --host and histoire dev -- --host without success. If this is already a supported feature, I'd love to know how to use it!

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement: to triageNew feature of request pending review by team member

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions