2024-11-25 08:40:10 +09:00

32 lines
710 B
TypeScript

import type { StorybookConfig } from "@storybook/react-vite";
const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-onboarding",
"@storybook/addon-essentials",
"@chromatic-com/storybook",
"@storybook/addon-interactions",
"storybook-dark-mode",
],
framework: {
name: "@storybook/react-vite",
options: {},
},
viteFinal: (config) => {
config.define = {
...config.define,
"process.env": process.env,
esbuild: {
jsx: "automatic",
},
};
return config;
},
typescript: {
reactDocgen: "react-docgen-typescript",
},
};
export default config;