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 =