fix: disable webhook on Vercel
This commit is contained in:
parent
3d1a46bffc
commit
f8f738965e
|
@ -19,7 +19,7 @@ export const getWebhookData = async (): Promise<WebhookData> =>
|
|||
JSON.parse((await readFile(WEBHOOK_DATA_PATH, 'utf-8')) || '{}')
|
||||
|
||||
let initialized = false
|
||||
if (IS_VERCEL && !initialized) writeWebhookData({ lastUpdate: +new Date() })
|
||||
if (!IS_VERCEL && !initialized) writeWebhookData({ lastUpdate: +new Date() })
|
||||
|
||||
export default async function handler(
|
||||
req: NextApiRequest,
|
||||
|
|
Loading…
Reference in New Issue