diff --git a/.storybook/main.ts b/.storybook/main.ts index 7e29894c..774a0610 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -16,6 +16,14 @@ const config: StorybookConfig = { docs: { autodocs: 'tag', }, + + async viteFinal(config, { configType }) { + if (configType === 'PRODUCTION') { + config.base = './' + } + + return config + }, } export default config