mirror of
https://github.com/acid-info/logos-press-engine.git
synced 2025-02-23 06:38:27 +00:00
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…
x
Reference in New Issue
Block a user