mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-04-04 03:01:25 -06:00
31 lines
683 B
TypeScript
31 lines
683 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",
|
|
],
|
|
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;
|