mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
40 lines
944 B
TypeScript
40 lines
944 B
TypeScript
import type { StorybookConfig } from "@storybook/react-vite";
|
|
import { UserConfig, mergeConfig } from "vite";
|
|
import electronViteConfig from "../electron.vite.config";
|
|
|
|
const config: StorybookConfig = {
|
|
stories: ["../frontend/**/*.mdx", "../frontend/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
|
|
|
|
addons: [
|
|
"@storybook/addon-links",
|
|
"@storybook/addon-essentials",
|
|
"@chromatic-com/storybook",
|
|
"@storybook/addon-interactions",
|
|
],
|
|
|
|
core: {
|
|
builder: "@storybook/builder-vite",
|
|
},
|
|
|
|
framework: {
|
|
name: "@storybook/react-vite",
|
|
options: {},
|
|
},
|
|
|
|
docs: {},
|
|
|
|
managerHead: (head) => `
|
|
${head}
|
|
<meta name="robots" content="noindex" />
|
|
`,
|
|
|
|
typescript: {
|
|
reactDocgen: "react-docgen-typescript",
|
|
},
|
|
|
|
viteFinal(config) {
|
|
return mergeConfig(config, electronViteConfig.renderer as UserConfig);
|
|
},
|
|
};
|
|
export default config;
|