We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a204e04 + 489ae9a commit 4b2d85fCopy full SHA for 4b2d85f
vite.config.js
@@ -5,6 +5,11 @@ import react from '@vitejs/plugin-react'
5
6
// https://vite.dev/config/
7
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: './',
13
plugins: [react()],
14
build: {
15
outDir: 'dist',
0 commit comments