From 41908f973c5e07bf9eebe910a38b6911019cabde Mon Sep 17 00:00:00 2001 From: Bennett <2165217440@qq.com> Date: Thu, 17 Apr 2025 21:54:05 +0800 Subject: [PATCH] Add webhook handler and update vercel.json --- vercel.json | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/vercel.json b/vercel.json index cf517d4..3bb2134 100644 --- a/vercel.json +++ b/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" + } + ] } -