Add vite.config.ts
This commit is contained in:
parent
0e8a266053
commit
2af60f2686
1 changed files with 19 additions and 0 deletions
19
vite.config.ts
Normal file
19
vite.config.ts
Normal file
|
|
@ -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,
|
||||||
|
},
|
||||||
|
});
|
||||||
Loading…
Reference in a new issue