import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import { fileURLToPath, URL } from "node:url"; export default defineConfig({ base: "/H5/", 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, }, }, }, });