Skip to content

Commit a6dd67c

Browse files
committed
update config for chromatic styles path
1 parent 79c8276 commit a6dd67c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.storybook/main.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/** @type { import('@storybook/svelte-vite').StorybookConfig } */
2-
process.env.CHROMATIC_DISABLE = 'true';
32

43
const config = {
54
framework: '@storybook/svelte-vite',
@@ -44,11 +43,9 @@ const config = {
4443
);
4544

4645
if (iframeHtml) {
47-
const isProduction = configType === 'PRODUCTION';
48-
const basePath = isProduction ? '/common/firebird/dist/storybook' : '';
4946
iframeHtml.source = iframeHtml.source.replace(
5047
'</head>',
51-
` <link rel="stylesheet" href="${basePath}/${cssChunk.fileName}">\n</head>`
48+
` <link rel="stylesheet" href="./${cssChunk.fileName}">\n</head>`
5249
);
5350
}
5451
}

0 commit comments

Comments
 (0)