From 11c2f8f4232c49dc9d2ab0fabb05de91294d8c82 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 18 May 2026 16:06:00 +0800 Subject: [PATCH] fix: allow external image api in proxy --- proxy.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proxy.ts b/proxy.ts index 33e414282..b0ec249ce 100644 --- a/proxy.ts +++ b/proxy.ts @@ -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 =