Align public homepage data checks with Next.js normalization #11

Merged
Zayden-Jung merged 1 commits from codex/wiki-public-data-tests into main 2026-10-29 09:54:37 +00:00
Collaborator

ces-control run483 在 tests/auth.test.ts 对 /_next/data/build/index.json 的旧307预期失败:NextRequest 会将首页数据请求规范化为 /,公开首页后实际为200。

更新单元测试明确允许首页data GET;改用私有 /library/import 的data URL继续验证鉴权。auth-cli端到端检查允许静态首页没有JSON数据路由(404)或返回200,均不得跳转登录,并继续保护私有页面数据。

仅调整两处验证预期,不修改 proxy 权限或页面代码。git diff --check通过;完整构建与验证仅交给ces-control。最新CI待运行,等待用户手动合并,bot不合并。

ces-control run483 在 tests/auth.test.ts 对 /_next/data/build/index.json 的旧307预期失败:NextRequest 会将首页数据请求规范化为 /,公开首页后实际为200。 更新单元测试明确允许首页data GET;改用私有 /library/import 的data URL继续验证鉴权。auth-cli端到端检查允许静态首页没有JSON数据路由(404)或返回200,均不得跳转登录,并继续保护私有页面数据。 仅调整两处验证预期,不修改 proxy 权限或页面代码。git diff --check通过;完整构建与验证仅交给ces-control。最新CI待运行,等待用户手动合并,bot不合并。
codex-bot added 1 commit 2026-10-29 09:33:48 +00:00
Align homepage data route checks with public knowledge access
waterfall-wiki CI and deployment / verify-and-deploy (pull_request) Has been cancelled
28b9fb1464
Zayden-Jung merged commit 968e7ff353 into main 2026-10-29 09:54:37 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Zayden-Jung/probably-rendering-one-more-pixel-tonight#11