fao/web/vite.config.ts
2026-04-23 19:24:46 +08:00

22 lines
429 B
TypeScript

import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
server: {
port: 5173,
proxy: {
"/api": {
target: "http://127.0.0.1:8080",
changeOrigin: true,
},
},
},
});