diff --git a/vite.config.js b/vite.config.js index 4520fce..a4988be 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,6 +3,9 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'; export default defineConfig({ plugins: [svelte()], + // Relative asset paths — makes the built index.html work when opened + // directly (file://) or served from any subpath, not just the server root. + base: './', server: { port: 8080, },