소스 검색

Merge pull request #968 from shih-liang/patch-2

修复 Edge Runtime 设置失效问题
Yifei Zhang 2 년 전
부모
커밋
0b36daf6ac
2개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 3
      app/api/chat-stream/route.ts
  2. 1 3
      app/api/openai/route.ts

+ 1 - 3
app/api/chat-stream/route.ts

@@ -59,6 +59,4 @@ export async function POST(req: NextRequest) {
   }
 }
 
-export const config = {
-  runtime: "edge",
-};
+export const runtime = "experimental-edge";

+ 1 - 3
app/api/openai/route.ts

@@ -30,6 +30,4 @@ export async function GET(req: NextRequest) {
   return makeRequest(req);
 }
 
-export const config = {
-  runtime: "edge",
-};
+export const runtime = "experimental-edge";