debug(ci): set base URL in `.storybook/main`

This commit is contained in:
Rickard Andersson 2023-08-21 20:49:21 +03:00
parent a2635e9190
commit 7ef07e5955
2 changed files with 3 additions and 8 deletions

View File

@ -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

View File

@ -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: {