Skip to content

Commit

Permalink
Migrate storybook configuration to 7
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Jul 31, 2023
1 parent 6cfff03 commit ea21d1f
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .storybook/main.js → .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
const path = require('path');
module.exports = {
import type { StorybookConfig } from '@storybook/nextjs';

const config: StorybookConfig = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-a11y',
{
name: 'storybook-addon-next',
options: {
nextConfigPath: path.resolve(__dirname, '../next.config.js'),
},
},
'@storybook/addon-mdx-gfm',
],
framework: '@storybook/react',
framework: '@storybook/nextjs',
core: {
builder: '@storybook/builder-webpack5',
},
Expand All @@ -23,3 +17,5 @@ module.exports = {
autodocs: true,
},
};

export default config;

0 comments on commit ea21d1f

Please sign in to comment.