moonlight-relay-server/vite.config.ts

20 lines
445 B
TypeScript
Raw Permalink Normal View History

2026-03-31 15:29:56 -04:00
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,
},
});