chirpstack/ui/vite.config.ts
2024-07-22 10:16:08 +01:00

20 lines
362 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
// https://vitejs.dev/config/
export default defineConfig({
build: {
outDir: "build",
sourcemap: true,
},
server: {
proxy: {
"^/api.*": {
target: "http://localhost:8080",
changeOrigin: true,
},
},
},
plugins: [react()],
});