import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // The build output goes straight into the Go package that embeds it, so // `go build` always picks up the latest UI. export default defineConfig({ plugins: [react()], build: { outDir: '../internal/webui/dist', emptyOutDir: true, chunkSizeWarningLimit: 900, }, server: { port: 5173, proxy: { '/api': { target: 'http://127.0.0.1:8080', changeOrigin: true, }, }, }, })