Skip to content

Commit

Permalink
bypass deployment protection on preview deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
holtschn committed Nov 9, 2024
1 parent f82b7a5 commit 848db02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/next/utils/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 848db02

Please sign in to comment.