Преглед на файлове

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";