From 75f93976ef0438c835fafe7d3c1abf501d7d5a59 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 5 Mar 2026 12:21:03 +0800 Subject: [PATCH] fix(proxy): allow /api/jobs routes before auth gate --- proxy.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proxy.ts b/proxy.ts index 8a58b3d2d..cf4a535b2 100644 --- a/proxy.ts +++ b/proxy.ts @@ -141,6 +141,11 @@ export async function proxy(request: NextRequest) { return NextResponse.next(); } + // 允许定时任务接口由服务端调用(具体鉴权由接口内部 CRON_SECRET 负责) + if (pathname.startsWith("/api/jobs/")) { + return NextResponse.next(); + } + // 允许公开访问动态 favicon(浏览器标签图标) if (pathname === "/api/favicon") { return NextResponse.next();