Skip to content

Commit

Permalink
Add multi-region deployment configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyureno2374 committed Nov 20, 2024
1 parent 707abb6 commit 5042843
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": 2,
"regions": ["iad1", "sfo1", "sin1", "fra1"],
"builds": [
{
"src": "frontend/package.json",
Expand All @@ -13,7 +14,13 @@
"routes": [
{
"src": "/api/(.*)",
"dest": "backend/server.js"
"dest": "backend/server.js",
"methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"],
"headers": {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET,OPTIONS,PATCH,DELETE,POST,PUT",
"Access-Control-Allow-Headers": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version, Authorization"
}
},
{
"src": "/(.*)",
Expand Down

0 comments on commit 5042843

Please sign in to comment.