Skip to content

Commit

Permalink
Vercel deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
johnd0e committed Feb 26, 2024
1 parent a5deedf commit f26dd38
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
.netlify
.vercel
.wrangler
29 changes: 29 additions & 0 deletions api/handler.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import worker from "../src/worker.mjs";

export default worker.fetch;

export const config = {
runtime: "edge",
// Available languages and regions for Google AI Studio and Gemini API
// https://ai.google.dev/available_regions#available_regions
// https://vercel.com/docs/concepts/edge-network/regions
regions: [
//"arn1",
"bom1",
//"cdg1",
"cle1",
"cpt1",
//"dub1",
//"fra1",
"gru1",
//"hkg1",
"hnd1",
"iad1",
"icn1",
"kix1",
"pdx1",
"sfo1",
"sin1",
"syd1",
],
};
Empty file added public/empty.html
Empty file.
5 changes: 5 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rewrites": [
{ "source": "/(.*)", "destination": "api/handler" }
]
}

0 comments on commit f26dd38

Please sign in to comment.