fix: allow external image api in proxy
This commit is contained in:
parent
b4698be089
commit
11c2f8f423
5
proxy.ts
5
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 =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user