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
21 lines
665 B
TypeScript
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/, ""),
|
|
},
|
|
},
|
|
},
|
|
});
|