imeeting/frontend/vite.config.ts

27 lines
589 B
TypeScript
Raw Normal View History

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
2026-03-17 07:31:09 +00:00
import { fileURLToPath, URL } from "node:url";
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
},
server: {
port: 5174,
proxy: {
"/auth": "http://10.100.52.13:8081",
"/sys": "http://10.100.52.13:8081",
"/api": "http://10.100.52.13:8081",
"/ws": {
target: "ws://10.100.52.13:8081",
ws: true
}
}
}
});