From 7ef07e59555d7fd6b6072f4231c6ca876618d91e Mon Sep 17 00:00:00 2001 From: Rickard Andersson Date: Mon, 21 Aug 2023 20:49:21 +0300 Subject: [PATCH] debug(ci): set base URL in `.storybook/main` --- .storybook/main.ts | 10 +++------- vite.config.ts | 1 - 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.storybook/main.ts b/.storybook/main.ts index ccec5642..2e58a01c 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -17,13 +17,9 @@ const config: StorybookConfig = { autodocs: 'tag', }, - // async viteFinal(config, { configType }) { - // if (configType === 'PRODUCTION') { - // config.base = process.env.BASE_URL || './' - // } - // - // return config - // }, + async viteFinal(config, {}) { + return { ...config, base: process.env.BASE_URL || config.base } + }, } export default config diff --git a/vite.config.ts b/vite.config.ts index 32a84398..93fd2fe8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -10,7 +10,6 @@ export default defineConfig({ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV), 'process.env.TAMAGUI_TARGET': JSON.stringify('web'), }, - base: process.env.BASE_URL || './', resolve: { extensions, alias: {