chirpstack/ui/vite.config.ts

20 lines
362 B
TypeScript
Raw Normal View History

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