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', autodocs: 'tag',
}, },
// async viteFinal(config, { configType }) { async viteFinal(config, {}) {
// if (configType === 'PRODUCTION') { return { ...config, base: process.env.BASE_URL || config.base }
// config.base = process.env.BASE_URL || './' },
// }
//
// return config
// },
} }
export default config export default config

View File

@ -10,7 +10,6 @@ export default defineConfig({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV), 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
'process.env.TAMAGUI_TARGET': JSON.stringify('web'), 'process.env.TAMAGUI_TARGET': JSON.stringify('web'),
}, },
base: process.env.BASE_URL || './',
resolve: { resolve: {
extensions, extensions,
alias: { alias: {