imeeting/imeeting-h5/vite.config.ts

25 lines
534 B
TypeScript
Raw Normal View History

2026-06-05 07:07:45 +00:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { fileURLToPath, URL } from "node:url";
export default defineConfig({
base: "/H5/",
2026-06-05 07:07:45 +00:00
plugins: [react()],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
server: {
proxy: {
"/auth": "http://localhost:8080",
"/sys": "http://localhost:8080",
"/api": "http://localhost:8080",
"/ws": {
target: "ws://localhost:8080",
ws: true,
},
},
},
});