chore: debug vercel webhook
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
parent
45a66e0f97
commit
fe2ba3cf76
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
// ...
|
||||
|
|
|
|||
Loading…
Reference in New Issue