1 10 20 30 40 50 60 701import { defineConfig } from 'vite';23// In development the Rust server runs on :8080 and Vite forwards /api to it.4// In production the server serves the built bundle itself.5export default defineConfig({6 server: {7 host: true,8 port: 5173,9 proxy: { '/api': 'http://127.0.0.1:8080' },10 },11 build: {12 outDir: 'dist',13 emptyOutDir: true,14 },15});