import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // Operator SPA. Built by Vite and served by Fastify in production // (see wiki/entities/react-vite-spa.md). The dev proxy points the API at the // local Fastify server. export default defineConfig({ plugins: [react()], server: { port: 5173, proxy: { "/api": "http://localhost:3000", "/health": "http://localhost:3000", }, }, build: { outDir: "dist", }, });