import { defineConfig } from 'vite' import { svelte } from '@sveltejs/vite-plugin-svelte' // The bundle is embedded into the Go binary and served from /, so all asset // paths must be relative (base: './'). export default defineConfig({ plugins: [svelte()], base: './', build: { outDir: 'dist', emptyOutDir: true, target: 'es2020', }, server: { port: 5173, proxy: { '/api': 'http://localhost:7788', '/healthz': 'http://localhost:7788', }, }, })