27 lines
593 B
TypeScript
27 lines
593 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { fileURLToPath, URL } from "node:url";
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url))
|
|
}
|
|
},
|
|
build: {
|
|
chunkSizeWarningLimit: 700
|
|
},
|
|
server: {
|
|
port: 5174,
|
|
proxy: {
|
|
"/auth": "http://10.100.53.199:8080",
|
|
"/sys": "http://10.100.53.199:8080",
|
|
"/api": "http://10.100.53.199:8080",
|
|
"/ws": {
|
|
target: "ws://10.100.51.199:8080",
|
|
ws: true
|
|
}
|
|
}
|
|
}
|
|
});
|