2023-08-21 16:50:03 +03:00

30 lines
627 B
TypeScript

import type { StorybookConfig } from '@storybook/react-vite'
const config: StorybookConfig = {
framework: '@storybook/react-vite',
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'storybook-addon-designs',
'storybook-dark-mode',
'storybook-addon-react-router-v6',
],
docs: {
autodocs: 'tag',
},
async viteFinal(config, { configType }) {
if (configType === 'PRODUCTION') {
config.base = './lul'
}
return config
},
}
export default config