chore: debug vercel webhook

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei 2024-11-08 00:04:03 +08:00
parent 45a66e0f97
commit fe2ba3cf76
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@ export default async function handler(request: VercelRequest, response: VercelRe
const { target } = json.payload || json.data
if (target === "production") {
return purgeCloudflareCache(response)
await purgeCloudflareCache(response)
} else {
console.info(`Skipping non-production deployment: ${target}`, json)
}
}
// ...