2026-02-10 09:48:44 +00:00
|
|
|
|
import { defineConfig } from "vite";
|
|
|
|
|
|
import react from "@vitejs/plugin-react";
|
2026-03-17 07:31:09 +00:00
|
|
|
|
import { fileURLToPath, URL } from "node:url";
|
2026-02-10 09:48:44 +00:00
|
|
|
|
export default defineConfig({
|
|
|
|
|
|
plugins: [react()],
|
2026-03-17 07:31:09 +00:00
|
|
|
|
resolve: {
|
|
|
|
|
|
alias: {
|
|
|
|
|
|
"@": fileURLToPath(new URL("./src", import.meta.url))
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
build: {
|
|
|
|
|
|
chunkSizeWarningLimit: 700
|
|
|
|
|
|
},
|
2026-02-10 09:48:44 +00:00
|
|
|
|
server: {
|
2026-03-12 12:39:49 +00:00
|
|
|
|
port: 5174,
|
2026-02-10 09:48:44 +00:00
|
|
|
|
proxy: {
|
2026-04-16 01:52:29 +00:00
|
|
|
|
"/auth": "http://10.100.52.13:8081",
|
|
|
|
|
|
"/sys": "http://10.100.52.13:8081",
|
|
|
|
|
|
"/api": "http://10.100.52.13:8081",
|
2026-03-30 09:56:30 +00:00
|
|
|
|
"/ws": {
|
2026-04-16 01:52:29 +00:00
|
|
|
|
target: "ws://10.100.52.13:8081",
|
2026-03-30 09:56:30 +00:00
|
|
|
|
ws: true
|
|
|
|
|
|
}
|
2026-02-10 09:48:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|