mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-10 00:12:22 +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
223 B
Plaintext
17 lines
223 B
Plaintext
```ts
|
|
// .storybook/preview.ts
|
|
import { Preview } from '@storybook/react';
|
|
|
|
const preview: Preview = {
|
|
// ...
|
|
parameters: {
|
|
// ...
|
|
nextjs: {
|
|
appDirectory: true,
|
|
},
|
|
},
|
|
};
|
|
|
|
export default preview;
|
|
```
|