histoire
histoire copied to clipboard
Allow passing --host flag to CLI
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
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.