fix(ci): add back `viteFinal` for base path

This commit is contained in:
Rickard Andersson 2023-08-21 16:27:33 +03:00
parent fbbcdf5669
commit a9546b4a25
2 changed files with 8 additions and 1 deletions

View File

@ -42,7 +42,6 @@ jobs:
runs-on: ubuntu-latest
env:
GH_PAGES: true
BASE_PATH: /nimbus-gui
needs: cache-dependencies
steps:
- uses: actions/checkout@v2

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