mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 14:06:59 +00:00
Update revalidate paths again
This commit is contained in:
parent
0ca5cdbae4
commit
d33b652791
@ -17,7 +17,7 @@ export async function POST(request: NextRequest) {
|
||||
const isValid = isValidSignature(JSON.stringify(requestData), signature, SANITY_WEBHOOK_SECRET);
|
||||
|
||||
// Log out validity of request.
|
||||
console.log(`===== Is the webhook request valid? ${isValid}`);
|
||||
console.log(`Webhook request valid? ${isValid}`);
|
||||
|
||||
// If not valid, return.
|
||||
if (!isValid) {
|
||||
@ -38,6 +38,6 @@ export async function POST(request: NextRequest) {
|
||||
|
||||
revalidatePath(pathToRevalidate);
|
||||
|
||||
console.log(`===== Revalidated path: ${pathToRevalidate}`);
|
||||
console.log(`Revalidated path: ${pathToRevalidate}`);
|
||||
return NextResponse.json({ revalidated: true, now: Date.now() });
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user