Commit d66dc855 by luoqi

fix(web): 根路径跳转上移到 next.config redirects — 消除 HomePage 负时间戳报错

server 组件里 redirect('/plans') 让 Next dev 给未开始计时的 HomePage 打渲染耗时
→ "Performance measure cannot have a negative time stamp"。改用路由层 redirects()
(/ → /plans),渲染前重定向、不渲染该组件,从源头消除;删冗余 (app)/page.tsx。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
parent de08d506
import { redirect } from 'next/navigation';
/**
* Home `/` 直接跳召回池。
* 未登录走 AuthGate(layout.tsx)拦截 → 弹 mock-login dialog。
* 历史调试页(会话信息 / 权限按钮 demo)如果将来需要,可移到 /debug 之类的内部路径。
*/
export default function HomePage(): never {
redirect('/plans');
}
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