Skip to content

Commit 310d215

Browse files
authored
Fix chromatic timeout (#2001)
* remove addon-html * dont include addon-html for chromatic
1 parent e219598 commit 310d215

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.storybook/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ module.exports = {
55
'@storybook/addon-links',
66
'@storybook/addon-essentials',
77
'storybook-addon-performance/register',
8-
...(process.env.NODE_ENV === 'production' ? ['@whitespace/storybook-addon-html'] : [])
8+
...(process.env.NODE_ENV === 'production' && process.env.GITHUB_JOB !== 'chromatic'
9+
? ['@whitespace/storybook-addon-html']
10+
: [])
911
]
1012
}

0 commit comments

Comments
 (0)