2
0

Storybook Helpers (#35158)

This commit is contained in:
Echo
2025-06-25 13:20:11 +02:00
committed by GitHub
parent 0a7418e6d8
commit c52848b444
11 changed files with 288 additions and 25 deletions

View File

@@ -11,7 +11,21 @@ const config: StorybookConfig = {
name: '@storybook/react-vite',
options: {},
},
staticDirs: ['./static'],
staticDirs: [
'./static',
// We need to manually specify the assets because of the symlink in public/sw.js
...[
'avatars',
'emoji',
'headers',
'sounds',
'badge.png',
'loading.gif',
'loading.png',
'oops.gif',
'oops.png',
].map((path) => ({ from: `../public/${path}`, to: `/${path}` })),
],
};
export default config;