mirror of
https://github.com/vercel/commerce.git
synced 2025-07-31 14:01:24 +00:00
Update to 15 RC 2
This commit is contained in:
@@ -428,7 +428,7 @@ export async function revalidate(req: NextRequest): Promise<NextResponse> {
|
||||
// otherwise it will continue to retry the request.
|
||||
const collectionWebhooks = ['collections/create', 'collections/delete', 'collections/update'];
|
||||
const productWebhooks = ['products/create', 'products/delete', 'products/update'];
|
||||
const topic = headers().get('x-shopify-topic') || 'unknown';
|
||||
const topic = (await headers()).get('x-shopify-topic') || 'unknown';
|
||||
const secret = req.nextUrl.searchParams.get('secret');
|
||||
const isCollectionUpdate = collectionWebhooks.includes(topic);
|
||||
const isProductUpdate = productWebhooks.includes(topic);
|
||||
|
Reference in New Issue
Block a user