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
c02df1b3ee
commit
04082124f3
@ -8,6 +8,10 @@ const SANITY_WEBHOOK_SECRET = `${process.env.SANITY_WEBHOOK_SECRET}`;
|
|||||||
export async function POST(request: NextRequest) {
|
export async function POST(request: NextRequest) {
|
||||||
// Await the response from our request.
|
// Await the response from our request.
|
||||||
const requestData = await request.json();
|
const requestData = await request.json();
|
||||||
|
|
||||||
|
const path = request.nextUrl.searchParams.get('path') || '/'
|
||||||
|
|
||||||
|
console.log(`===== Path: ${path}`)
|
||||||
|
|
||||||
// Get headers.
|
// Get headers.
|
||||||
const headersList = headers();
|
const headersList = headers();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user