fix(ci): add `viteFinal` step to set proper asset path

This commit is contained in:
Rickard Andersson 2023-08-21 14:57:13 +03:00
parent ae9253ed98
commit b9beb27b86
1 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,14 @@ const config: StorybookConfig = {
docs: {
autodocs: 'tag',
},
async viteFinal(config, { configType }) {
if (configType === 'PRODUCTION') {
config.base = './'
}
return config
},
}
export default config