Use a relative base so the build works at any mount point
1 changed file+2−1
vite.config.tsmodified+2−1View file
@@ -4,5 +4,6 @@ import react from '@vitejs/plugin-react'
44 // https://vite.dev/config/
55 export default defineConfig({
66 plugins: [react()],
7- base: '/ans-visualizer/',
7+ // Relative base, so the build works wherever it is mounted
8+ base: './',
89 })