Skip to content

Commit

Permalink
config: enable edge function across all regions
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-2369 committed Feb 12, 2025
1 parent 999ebf2 commit a7bfe67
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 52 deletions.
19 changes: 0 additions & 19 deletions app/api/[provider]/[...path]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,3 @@ 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",
];
14 changes: 0 additions & 14 deletions app/api/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,6 @@ export const GET = handle;
export const POST = handle;

export const runtime = "edge";
export const preferredRegion = [
"bom1",
"cle1",
"cpt1",
"gru1",
"hnd1",
"iad1",
"icn1",
"kix1",
"pdx1",
"sfo1",
"sin1",
"syd1",
];

async function request(req: NextRequest, apiKey: string) {
const controller = new AbortController();
Expand Down
19 changes: 0 additions & 19 deletions app/api/tencent/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,6 @@ 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",
];

async function request(req: NextRequest) {
const controller = new AbortController();
Expand Down

0 comments on commit a7bfe67

Please sign in to comment.