import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import tailwindcss from "@tailwindcss/vite"; // The build is embedded into the Go binary (web/embed.go) and served at /admin/ui/. // In dev, run the Go server on :8083 and `npm run dev`, then open // http://localhost:5173/admin/ui/ export default defineConfig({ base: "/admin/ui/", plugins: [react(), tailwindcss()], build: { outDir: "dist", // keep dist/.gitkeep so go:embed always has a directory emptyOutDir: false, chunkSizeWarningLimit: 600, }, server: { proxy: { "/admin/api": "http://localhost:8083", }, }, });