playroom
playroom copied to clipboard
[Feature Request] Option to append index.html to routes
Some hosting environments like Chromatic don't automatically serve index.html
from a folder path, e.g <base-url>/playroom/preview
would just 404. I raised this issue with Chromatic and they are looking into it, but I thought it would also be useful to fix the problem here so other people can workaround it if their hosting cannot be modified.
I can see 3 paths for supporting this:
- Updating all the links to include
index.html
, this could be a breaking change in some cases. - Adding an option to include
index.html
so it is opt-in. - Add a
previewUrl
option so theindex.html
can be added manually.
Personally I think option 2 makes the most-sense as it is opt-in and can apply to all URLs rather than having a separate option for any new links added in the future.
I have the exact same issue with the CircleCI artifacts storage and would very much like to see this merged. Happy to help if help is needed.
@roddds Not sure there is much you can do. I have put in a PR to fix the issue, just waiting on a PR review from a maintainer. I suppose you could test the implementation in your use-case and provide any feedback there?
We're experiencing the same issue so would be great if the PR could be progressed.
If you're using Chromatic I worked with their devs and this is no-longer needed. But would still be useful for other platforms.