histoire icon indicating copy to clipboard operation
histoire copied to clipboard

Allow passing --host flag to CLI

Open brunobely opened this issue 2 years ago • 2 comments

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

brunobely avatar Nov 23 '22 16:11 brunobely