浏览代码

feat: fix illegal exports in app/api/anthropic/[...path]/route.ts

butterfly 1 年之前
父节点
当前提交
5446d8d4a2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/api/anthropic/[...path]/route.ts

+ 1 - 1
app/api/anthropic/[...path]/route.ts

@@ -80,7 +80,7 @@ export const preferredRegion = [
 
 const serverConfig = getServerSideConfig();
 
-export async function request(req: NextRequest) {
+async function request(req: NextRequest) {
   const controller = new AbortController();
 
   let authHeaderName = "x-api-key";