From b9beb27b86cfe0b0dcb3593d889ae60dc312ecab Mon Sep 17 00:00:00 2001 From: Rickard Andersson Date: Mon, 21 Aug 2023 14:57:13 +0300 Subject: [PATCH] fix(ci): add `viteFinal` step to set proper asset path --- .storybook/main.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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