mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 22:21:47 +08:00
- Based on - https://github.com/storybookjs/storybook/tree/next/code/frameworks/nextjs - https://storybook.js.org/blog/integrate-nextjs-and-storybook-automatically/
17 lines
263 B
Plaintext
17 lines
263 B
Plaintext
```ts
|
|
// .storybook/main.ts
|
|
import { StorybookConfig } from '@storybook/nextjs';
|
|
|
|
const config: StorybookConfig = {
|
|
// ...
|
|
staticDirs: [
|
|
{
|
|
from: '../src/components/fonts',
|
|
to: 'src/components/fonts',
|
|
},
|
|
],
|
|
};
|
|
|
|
export default config;
|
|
```
|