-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core: iframe.html no longer built with --preview-url #14591
Comments
Argh, that looks like a fairly serious regression caused the by the webpack4/5 refactor. Looking into it now. |
Hi @sarahbethfederman can you tell me more about your setup? I tried reproducing the problem in our monorepo ( When you run |
The situation we have is described here #3699 (comment) |
Ok, I've confirmed that |
By default our router/CDN setup only fetches the index.html, so all static assets need to refer to an absolute path with the ugly url that's generated in our deployment pipeline. The I'm not sure if it was a "bugfix" because the actual use case for --preview-url didn't seem to be documented :) |
Ok thanks for explaining. I'll see if i can restore the old behavior for now (or maybe fix the other bug?!), and there's a good chance we'll be revisiting the preview url feature in the coming months |
Awesome, thanks!! |
@sarahbethfederman I don't think the build points to Side note: I've taken a look at the 6.1 => 6.2 changes and it would be easy to roll this back. However, I'd like to solve the real problem here if possible. |
Yeah unfortunately going to |
@shilman I'm having the same issue with v6.2 :( In primer_view_components we demo our components using a Rails app that servers the static Storybook files. We place them at Initially, we built the static files with The only way to fix that was adding a trailing That was all in v6.1, but now in v6.2 our storybook reverted to fetch the incorrect |
Same problem. I'd like to deploy the storybook with subpath. So I change the config referenced to this answer. |
Hurrah!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.3.0-alpha.45 containing PR #15030 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
@shilman I can confirm that your fix fixes the problem which I believe was the problem the OP had. |
Storybook v6.2 has a regression that affects how we build our stories storybookjs/storybook#14591
Describe the bug
Since upgrading to 6.2.7 from 6.1.21, we're no longer seeing an iframe.html generated, and it seems the --preview-url flag has been removed from the CLI? I didn't see any release notes about this, and it's causing our CDN deploy to break.
Our build script looks like this
Screenshots
Before:
After:
Code snippets
If applicable, add code samples to help explain your problem.
System
Please paste the results of
npx sb@next info
here.Additional context
Add any other context about the problem here.
┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: