chore: clean storybook

This commit is contained in:
kawamataryo
2024-11-24 14:41:14 +09:00
parent f1aac1abe8
commit 04841ea7bf
12 changed files with 40 additions and 177 deletions

View File

@@ -1,5 +1,7 @@
import type { StorybookConfig } from "@storybook/react-vite";
import { defineConfig } from 'vite';
const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
@@ -15,5 +17,12 @@ const config: StorybookConfig = {
docs: {
autodocs: "tag",
},
viteFinal: (config) => {
config.define = {
...config.define,
'process.env': process.env,
};
return config;
},
};
export default config;