waveterm/.storybook/main.ts

40 lines
944 B
TypeScript
Raw Normal View History

2024-05-25 02:44:41 +02:00
import type { StorybookConfig } from "@storybook/react-vite";
2024-06-14 04:46:31 +02:00
import { UserConfig, mergeConfig } from "vite";
import electronViteConfig from "../electron.vite.config";
2024-05-25 02:44:41 +02:00
const config: StorybookConfig = {
stories: ["../frontend/**/*.mdx", "../frontend/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
2024-05-28 21:12:28 +02:00
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@chromatic-com/storybook",
"@storybook/addon-interactions",
],
core: {
builder: "@storybook/builder-vite",
},
2024-05-28 21:12:28 +02:00
framework: {
name: "@storybook/react-vite",
options: {},
},
docs: {},
2024-05-28 21:12:28 +02:00
managerHead: (head) => `
2024-05-25 02:44:41 +02:00
${head}
<meta name="robots" content="noindex" />
`,
typescript: {
reactDocgen: "react-docgen-typescript",
},
2024-06-14 04:46:31 +02:00
2024-06-14 04:50:27 +02:00
viteFinal(config) {
2024-06-14 04:46:31 +02:00
return mergeConfig(config, electronViteConfig.renderer as UserConfig);
},
2024-05-25 02:44:41 +02:00
};
export default config;