We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aff441c commit 79c8276Copy full SHA for 79c8276
.storybook/main.js
@@ -44,9 +44,11 @@ const config = {
44
);
45
46
if (iframeHtml) {
47
+ const isProduction = configType === 'PRODUCTION';
48
+ const basePath = isProduction ? '/common/firebird/dist/storybook' : '';
49
iframeHtml.source = iframeHtml.source.replace(
50
'</head>',
- ` <link rel="stylesheet" href="/${cssChunk.fileName}">\n</head>`
51
+ ` <link rel="stylesheet" href="${basePath}/${cssChunk.fileName}">\n</head>`
52
53
}
54
0 commit comments