Browse Source

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

修复 Edge Runtime 设置失效问题
Yifei Zhang 2 years ago
parent
commit
0b36daf6ac
2 changed files with 2 additions and 6 deletions
  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";