Skip to content

Commit

Permalink
routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya-Thakur committed May 31, 2021
1 parent a0bd49a commit 5aa2069
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
{
"version": 2,
"builds": [
{
"src": "./index.js",
"use": "@vercel/node"
}
],
"headers": [
{
"source": "/(.*)",
"headers": [
{ "key": "Access-Control-Allow-Credentials", "value": "true" },
{ "key": "Access-Control-Allow-Origin", "value": "*" },
{ "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT" },
{ "key": "Access-Control-Allow-Headers", "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" }
]
"source": "/(.*)",
"headers": [
{
"key": "access-control-allow-origin",
"value": "*"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/"
}
],
"builds": [
{
"src": "./index.js",
"use": "@vercel/node"
}
],
}
]
}
]
}

0 comments on commit 5aa2069

Please sign in to comment.