Add webhook handler and update vercel.json

This commit is contained in:
2025-04-17 21:54:05 +08:00
parent 67a6501764
commit 41908f973c

View File

@@ -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"
}
]
}