2026-04-17 16:31:32 +08:00
|
|
|
import path from "node:path";
|
2026-04-14 16:27:47 +08:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
|
import react from "@vitejs/plugin-react-swc";
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [react()],
|
2026-04-17 16:31:32 +08:00
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
"@": path.resolve(__dirname, "src")
|
|
|
|
|
}
|
|
|
|
|
},
|
2026-04-14 16:27:47 +08:00
|
|
|
server: {
|
|
|
|
|
port: 5173,
|
|
|
|
|
proxy: {
|
|
|
|
|
"/api": {
|
|
|
|
|
target: "http://localhost:8088",
|
|
|
|
|
changeOrigin: true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|