瀏覽代碼

config: exclude hkg1 from the deployment regions of the edge function

Eric-2369 1 年之前
父節點
當前提交
74eb42c111
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/api/openai/[...path]/route.ts

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

@@ -75,3 +75,4 @@ export const GET = handle;
 export const POST = handle;
 
 export const runtime = "edge";
+export const preferredRegion = ['arn1', 'bom1', 'cdg1', 'cle1', 'cpt1', 'dub1', 'fra1', 'gru1', 'hnd1', 'iad1', 'icn1', 'kix1', 'lhr1', 'pdx1', 'sfo1', 'sin1', 'syd1'];