Skip to content

Commit b42f923

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.storybook/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ const config = {
4444
);
4545

4646
if (iframeHtml) {
47-
const isProduction = configType === 'PRODUCTION';
47+
const isChromatic = process.env.CHROMATIC === 'true' || process.env.CI === 'true';
48+
const isProduction = configType === 'PRODUCTION' && !isChromatic;
4849
const basePath = isProduction ? '/common/firebird/dist/storybook' : '';
4950
iframeHtml.source = iframeHtml.source.replace(
5051
'</head>',

0 commit comments

Comments
 (0)