17 lines
369 B
TypeScript
17 lines
369 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
// Build output goes into internal/web/dist so it is embedded into the Go binary.
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: {
|
|
outDir: "../internal/web/dist",
|
|
emptyOutDir: true,
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": "http://localhost:8080",
|
|
},
|
|
},
|
|
});
|