vite.config.ts
861 Bytes
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { createWebAppConfig } from '@uj/vite-config/react';
const appDir = path.dirname(fileURLToPath(import.meta.url));
/**
* finance(财务管理)子应用构建配置。
* 与 system / store / points / usedcar 同源:无 /api 代理、无 PEM 虚拟模块、无签名密钥。
* 差别在运行时:配置中心读取与登录态经主壳 props.request,付款业务接口由本子系统自带的
* ROP 客户端直连网关(src/api/core/client.ts),不经主壳代发、不依赖 usedcar。
* 端口 5178:system 5174 / store 5175 / points 5176 / usedcar 5177 已占用,
* 工厂开了 strictPort,端口写在 vite.config.ts 里是 scripts/dev.mjs 与
* scripts/reconcile.mjs 的端口真源。
*/
export default createWebAppConfig({ appDir, port: 5178 });