debug(ci): set base URL up to be pulled from env

This commit is contained in:
Rickard Andersson 2023-08-21 17:07:31 +03:00
parent 8a322bf241
commit aa247b1c22
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -19,7 +19,7 @@ const config: StorybookConfig = {
async viteFinal(config, { configType }) {
if (configType === 'PRODUCTION') {
config.base = '/nimbus-gui/'
config.base = process.env.BASE_URL || './'
}
return config