mirror of
https://github.com/chirpstack/chirpstack.git
synced 2024-12-20 21:53:11 +00:00
20 lines
361 B
TypeScript
20 lines
361 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()],
|
||
|
});
|