Files
ERP/frontend/vite.config.ts
T
MMD 934b74ebbd Squashed 'pm/' content from commit 91f3271
git-subtree-dir: pm
git-subtree-split: 91f3271d866fa8ee471cfb6793e334b83e6d2b6e
2026-10-07 15:14:20 +03:30

21 lines
665 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
// PM زیر مسیر /pm/ روی همان دامنه ERP سرو می‌شود (پنل «مدیریت پروژه» داخل ERP)
export default defineConfig({
plugins: [react(), tailwindcss()],
base: "/pm/",
server: {
port: 5173,
// در حالت dev، درخواست‌های /pm/api به بک‌اند PM (پورت 8083) پراکسی می‌شوند
proxy: {
"/pm/api": {
target: "http://localhost:8083",
changeOrigin: true,
rewrite: (p) => p.replace(/^\/pm/, ""),
},
},
},
});