Skip to content

Commit 223ba14

Browse files
authored
🐛 Use relative base path for demo build (#23)
GitHub Pages serves the demo from /sidenotes/, but Vite defaulted to an absolute base so built assets resolved to /assets/... and 404'd.
1 parent 36f58a0 commit 223ba14

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { resolve } from 'node:path';
55

66
export default defineConfig({
77
plugins: [react(), tailwindcss()],
8+
base: './',
89
root: resolve(__dirname, 'demo'),
910
server: {
1011
port: 3013,

0 commit comments

Comments
 (0)