From aa247b1c222a1e6596c2c6ad17b00580047908e3 Mon Sep 17 00:00:00 2001 From: Rickard Andersson Date: Mon, 21 Aug 2023 17:07:31 +0300 Subject: [PATCH] debug(ci): set base URL up to be pulled from env --- .github/workflows/deploy-storybook.yaml | 1 + .storybook/main.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-storybook.yaml b/.github/workflows/deploy-storybook.yaml index d5a0e769..62bd9937 100644 --- a/.github/workflows/deploy-storybook.yaml +++ b/.github/workflows/deploy-storybook.yaml @@ -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 diff --git a/.storybook/main.ts b/.storybook/main.ts index e2543b65..a8d24446 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -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