Add webhook handler and update vercel.json
This commit is contained in:
20
vercel.json
20
vercel.json
@@ -1,5 +1,19 @@
|
||||
{
|
||||
"buildCommand": "npm run build",
|
||||
"outputDirectory": "build"
|
||||
"version": 2,
|
||||
"builds": [
|
||||
{
|
||||
"src": "api/gitea-webhook.js",
|
||||
"use": "@vercel/node"
|
||||
},
|
||||
{
|
||||
"src": "build/**",
|
||||
"use": "@vercel/static"
|
||||
}
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"src": "/api/gitea-webhook",
|
||||
"dest": "/api/gitea-webhook.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user