You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the index.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.
The text was updated successfully, but these errors were encountered:
@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?
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:
index.html
, this could be a breaking change in some cases.index.html
so it is opt-in.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.
The text was updated successfully, but these errors were encountered: