Skip to content

Commit 36f5ef8

Browse files
committed
Fix base path for Vercel deployment - Use / for production, /bb84_simulation/ for GitHub Pages
1 parent d9f5dcf commit 36f5ef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import path from "path";
44

55

66
export default defineConfig(({ mode }) => ({
7-
base: '/bb84_simulation/',
7+
base: mode === 'production' ? '/' : '/bb84_simulation/',
88
server: {
99
host: "::",
1010
port: 8080,

0 commit comments

Comments
 (0)