From ff97ae0677c54745731bddb57d7b5ce14a414564 Mon Sep 17 00:00:00 2001 From: "Nelo-T. Wallus" Date: Fri, 22 Aug 2025 15:26:27 +0200 Subject: [PATCH] Fix base again Signed-off-by: Nelo-T. Wallus Signed-off-by: Nelo-T. Wallus --- .github/workflows/pages.yaml | 2 +- .vitepress/config.mts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml index ea11b29..a7f352a 100644 --- a/.github/workflows/pages.yaml +++ b/.github/workflows/pages.yaml @@ -52,7 +52,7 @@ jobs: - run: npm ci - run: npm run build env: - PAGES_BASE: ${{ github.event_name == 'pull_request' && format('pr-preview/pr-{0}', github.event.pull_request.number) || '/' }} + PAGES_BASE: ${{ github.event_name == 'pull_request' && format('pr-preview/pr-{0}', github.event.pull_request.number) || '' }} # deploy the PR to a preview URL - uses: rossjrw/pr-preview-action@9f77b1d057b494e662c50b8ca40ecc63f21e0887 # v1 diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 2371fb5..a9e9a04 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -8,7 +8,7 @@ export default withMermaid({ ['link', { rel: 'icon', href: '/favicon.ico' }] ], - base: typeof process.env.PAGES_BASE !== 'undefined' ? '/' + process.env.PAGES_BASE : '', + base: 'PAGES_BASE' in process.env && process.env.PAGES_BASE != '' ? '/' + process.env.PAGES_BASE : '', description: "Platform Mesh - Building upon the Kubernetes API & Resource Model",