Skip to content

Commit 29f64a9

Browse files
authored
Merge pull request #20 from platform-mesh/fix-base-again
2 parents c6835c2 + ff97ae0 commit 29f64a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/pages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- run: npm ci
5353
- run: npm run build
5454
env:
55-
PAGES_BASE: ${{ github.event_name == 'pull_request' && format('pr-preview/pr-{0}', github.event.pull_request.number) || '/' }}
55+
PAGES_BASE: ${{ github.event_name == 'pull_request' && format('pr-preview/pr-{0}', github.event.pull_request.number) || '' }}
5656

5757
# deploy the PR to a preview URL
5858
- uses: rossjrw/pr-preview-action@9f77b1d057b494e662c50b8ca40ecc63f21e0887 # v1

.vitepress/config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default withMermaid({
88
['link', { rel: 'icon', href: '/favicon.ico' }]
99
],
1010

11-
base: typeof process.env.PAGES_BASE !== 'undefined' ? '/' + process.env.PAGES_BASE : '',
11+
base: 'PAGES_BASE' in process.env && process.env.PAGES_BASE != '' ? '/' + process.env.PAGES_BASE : '',
1212

1313
description: "Platform Mesh - Building upon the Kubernetes API & Resource Model",
1414

0 commit comments

Comments
 (0)