From ea21d1f938b40270ac14dae7ddb37914f584f985 Mon Sep 17 00:00:00 2001 From: Jonathan Sick Date: Mon, 31 Jul 2023 18:45:07 -0400 Subject: [PATCH] Migrate storybook configuration to 7 --- .storybook/{main.js => main.ts} | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) rename .storybook/{main.js => main.ts} (57%) diff --git a/.storybook/main.js b/.storybook/main.ts similarity index 57% rename from .storybook/main.js rename to .storybook/main.ts index c7b4344e..d78565ea 100644 --- a/.storybook/main.js +++ b/.storybook/main.ts @@ -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', }, @@ -23,3 +17,5 @@ module.exports = { autodocs: true, }, }; + +export default config;