import { defineConfig } from "vite"; import vue from "@vitejs/plugin-vue"; export default defineConfig({ plugins: [vue()], build: { outDir: "dist", emptyOutDir: true, }, server: { port: 5173, proxy: { // Proxy /api to the Quart backend. Defaults to localhost:5000 for host dev; // docker-compose.dev.yml sets VITE_API_TARGET=http://api:5000. "/api": process.env.VITE_API_TARGET || "http://localhost:5000", }, }, });