Skip to content

Commit

Permalink
update env var
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrickaby authored Dec 13, 2023
1 parent 33b0494 commit 45a90b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/revalidate/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function POST(request: Request) {
const requestHeaders = new Headers(request.headers)
const secret = requestHeaders.get('x-vercel-revalidation-secret')

if (secret !== process.env.NEXTJS_REVALIDATE_SECRET) {
if (secret !== process.env.NEXTJS_REVALIDATION_SECRET) {
return Response.json({message: 'Invalid secret'}, {status: 401})
}

Expand Down

1 comment on commit 45a90b6

@vercel
Copy link

@vercel vercel bot commented on 45a90b6 Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.