From 848db02c8e08e36e35080b08acb50471bad6c287 Mon Sep 17 00:00:00 2001 From: Martin Holtschneider Date: Sat, 9 Nov 2024 18:57:43 +0100 Subject: [PATCH] bypass deployment protection on preview deployments --- src/next/utils/events.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/next/utils/events.ts b/src/next/utils/events.ts index 1ff1f6f..ccf601d 100644 --- a/src/next/utils/events.ts +++ b/src/next/utils/events.ts @@ -115,6 +115,7 @@ export async function queryEvent(slug: string, isDraftMode: boolean, tokenValue: credentials: 'include', headers: { 'Content-Type': 'application/json', + 'x-vercel-protection-bypass': process.env.VERCEL_AUTOMATION_BYPASS_SECRET ?? '', ...{ Authorization: `JWT ${tokenValue}` }, }, cache: 'no-store',