Commit 238c1446 by luoqi

fix(web): 补提交 next.config redirects(/→/plans)— d66dc855 漏掉致 / 404

d66dc855 只提交了 (app)/page.tsx 删除,next.config 的 redirects() 没 staged 上去
→ origin/main 是'page.tsx 已删+无 redirect',服务器 / 会 404。本提交补回。
顺带提交 persona-implementation.md(linter 重排)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
parent 7b6cdb9f
......@@ -6,6 +6,13 @@ const nextConfig = {
// (see src/app layout/page).
output: 'standalone',
typedRoutes: true,
async redirects() {
// 根路径跳召回工作台 —— 放在路由层(而非 HomePage 组件里 redirect()):
// server 组件同步 redirect() 会让 Next dev 给未开始计时的 'HomePage' 打耗时 →
// "Performance measure cannot have a negative time stamp" 运行时报错。路由层跳转
// 根本不渲染该组件,从源头消除。
return [{ source: '/', destination: '/plans', permanent: false }];
},
async headers() {
// frame-ancestors is dynamically injected per-tenant in real deploys; here we
// keep a permissive default for local dev. Production should set this from
......
......@@ -50,7 +50,6 @@
**snapshot vs lifetime 判别准则**(都在重算时刻评估,这点不是分界;分界看**值的演化方向**):
- `lifetime` = 单调累计,**只增不减**(做过种植→治疗史永远有;拿过 9 折→锚点永远 ≤9 折);
- `snapshot` = 可逆的当前态,**可增可减**(gap 治了就消失、禁忌到龄解除、家庭构成会变)。
- 注意 `entitlement_status` 是 lifetime → 语义是"**曾有**"非"现有"(保险过期标签仍在),对外口径要说清。
| 取值 | 含义 | 例 |
|---|---|---|
......@@ -98,6 +97,7 @@
- 左栏画像圈人:`patient-picker-rail.tsx``plan.service.ts` JSON 路径 SQL(**同维 OR,跨维 AND**,只匹配当前版)
- Plan 优先级:意愿度因子读 rfm/lifecycle
- 助手 MCP:`get_patient_overview` 带画像
- 运营策略
## 关键
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment