fix: allow external image api in proxy
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-05-18 16:06:00 +08:00
parent b4698be089
commit 11c2f8f423

View File

@ -263,6 +263,11 @@ export async function proxy(request: NextRequest) {
return NextResponse.next();
}
// 允许第三方生图 API 由外部系统直接调用(具体鉴权由接口内 API Key 负责)
if (pathname.startsWith("/api/external/image/")) {
return NextResponse.next();
}
const token = await resolveToken();
const isPublicPage =