histoire-dev / histoire-dev/histoire
Allow passing --host flag to CLI
- Dominant language
- TypeScript
- Stars
- 3.6k
- Forks
- 212
- PR merge metrics
- No merged PRs in 30d
Description
### 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](https://github.com/histoire-dev/histoire/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/histoire-dev/histoire/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://histoire.dev/guide/).
- [X] Check that there isn't [already an issue](https://github.com/histoire-dev/histoire/issues) that requests the same feature to avoid creating a duplicate.
Contributor guide
Assessment
This issue has not been assessed yet.