Files
baby-nas/web/vite.config.ts
T

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",
},
},
});