From 2af60f2686c474816123ef95f3c4ed2f99a2e1ed Mon Sep 17 00:00:00 2001 From: zgaetano Date: Tue, 31 Mar 2026 15:29:56 -0400 Subject: [PATCH] Add vite.config.ts --- vite.config.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 vite.config.ts diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..774c3fb --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,19 @@ +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; + +export default defineConfig({ + plugins: [react()], + server: { + port: 1420, + strictPort: true, + // Proxy API calls to the Go backend during local dev + proxy: { + "/api": "http://localhost:8080", + }, + }, + build: { + // Output directly into the go:embed target directory + outDir: "backend/cmd/moonrelay/ui", + emptyOutDir: true, + }, +});