storybook/docs/snippets/common/storybook-main-with-single-static-dir.js.mdx
2022-05-25 16:22:00 +01:00

9 lines
287 B
Plaintext

```js
// .storybook/main.js
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
staticDirs: ['../public'], //👈 Configures the static asset folder in Storybook
};
```