Skip to content

Commit

Permalink
chore: Log full ISR URL
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Jan 29, 2024
1 parent 3ebd18d commit 60a483d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/src/app/api/isr/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const ACCEPTED_TAGS = ['github', 'github-actions-status']
export async function GET(req: NextRequest) {
const token = req.nextUrl.searchParams.get('token')
if (token !== process.env.ISR_TOKEN) {
console.log('Invalid token `%s`', token)
console.log('Invalid token `%s`', req.nextUrl.toString())
return NextResponse.json({ error: 'Invalid token' }, { status: 400 })
}
const now = new Date()
Expand Down

0 comments on commit 60a483d

Please sign in to comment.