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