Skip to content

Commit

Permalink
Added debug line to revalidate.js
Browse files Browse the repository at this point in the history
Added debug line to `revalidate.js`
  • Loading branch information
ericdrosas87 committed May 23, 2024
1 parent 9baccde commit 547f449
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/api/revalidate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ async function handler(req, res) {
receivedToken: query.secret,
});

console.debug({
modifiedEnvVar: process.env.NEXT_PUBLIC_CRAFT_REVALIDATE_SECRET_TOKEN,
});

if (isPreview) {
return res.status(401).json({
message:
Expand Down

0 comments on commit 547f449

Please sign in to comment.