Skip to content

Commit 4b2d85f

Browse files
authored
Merge pull request #15 from JavaZeroo/codex/investigate-gh-pages-branch-content-issue
Fix PR preview base path
2 parents a204e04 + 489ae9a commit 4b2d85f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vite.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import react from '@vitejs/plugin-react'
55

66
// https://vite.dev/config/
77
export default defineConfig({
8+
// Use a relative base path so the built site works
9+
// when deployed to subfolders such as PR previews.
10+
// This still works for the main site hosted at the
11+
// repository root.
12+
base: './',
813
plugins: [react()],
914
build: {
1015
outDir: 'dist',

0 commit comments

Comments
 (0)