Skip to content

Commit 3d34f6b

Browse files
committed
Fixed vercel.json. Added DELETE in Allowed Methods header
1 parent cbe48ca commit 3d34f6b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

api/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const fastify = Fastify({
1414
fastify.addHook('onRequest', (request, reply, done) => {
1515
reply.headers({
1616
'Access-Control-Allow-Origin': '*',
17-
'Access-Control-Allow-Methods': 'GET,POST'
17+
'Access-Control-Allow-Methods': 'GET,POST,DELETE'
1818
})
1919
done();
2020
})

vercel.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"devCommand": null,
44
"framework": null,
55
"installCommand": "npm install",
6-
"nodeVersion": "20.x",
76
"outputDirectory": null,
8-
"rootDirectory": null,
97
"trailingSlash": false,
108
"redirects": [
119
{

0 commit comments

Comments
 (0)