mirror of https://github.com/buster-so/buster.git
26 lines
692 B
TypeScript
26 lines
692 B
TypeScript
import type { StorybookConfig } from '@storybook/nextjs';
|
|
import path from 'path';
|
|
|
|
const config: StorybookConfig = {
|
|
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
|
addons: [
|
|
'@storybook/addon-essentials',
|
|
'@chromatic-com/storybook',
|
|
'@storybook/addon-interactions'
|
|
],
|
|
framework: {
|
|
name: '@storybook/nextjs',
|
|
options: {}
|
|
},
|
|
staticDirs: ['../public'],
|
|
webpackFinal: async (config) => {
|
|
config.resolve = config.resolve || {};
|
|
config.resolve.alias = {
|
|
...(config.resolve.alias || {}),
|
|
'next/navigation': path.resolve(__dirname, './mocks/next-navigation.ts')
|
|
};
|
|
return config;
|
|
}
|
|
};
|
|
export default config;
|