Files
ERP/pm/frontend/vite.config.ts
MMD 2747f9d4bb chore(pm): vendor the Aramesh/PM platform under pm/ (squash of Aramesh/PM @ 91f3271)
The PM panel (PmPanelPage -> iframe /pm/) needs the project-management
platform served at /pm/ on the ERP domain. Source: org repo Aramesh/PM,
branch feature/project-management-platform. Update via:
git subtree pull --prefix=pm aramesh-pm feature/project-management-platform --squash
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/, ""),
},
},
},
});