-
Notifications
You must be signed in to change notification settings - Fork 73
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
Fix storybookUrl
by removing iframe.html
suffix
#518
Fix storybookUrl
by removing iframe.html
suffix
#518
Conversation
@@ -107,7 +107,7 @@ async function runChromatic(options): Promise<Output> { | |||
url: ctx.build?.webUrl, | |||
code: ctx.exitCode, | |||
buildUrl: ctx.build?.webUrl, | |||
storybookUrl: ctx.build?.cachedUrl, | |||
storybookUrl: ctx.build?.cachedUrl.replace(/iframe\.html.*$/, ''), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the .*
at the end?
PS we also have a build.storybookUrl
that we could request, perhaps could be more reliable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added that to also strip off any query params (which would not work for the manager)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should never be any query params on cachedUrl I think, but can't hurt to guard against it I suppose.
@ghengeveld WDYT? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Also resharing Tom's question:
We also have a
build.storybookUrl
that we could request, perhaps could be more reliable thanbuild.cachedUrl
?
storybookUrl
by removing iframe.html
suffix
Released in 6.5.0. |
update the action's storybookUrl output, to NOT include
iframe.html
as requested in #409