mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
metadata update and clog
This commit is contained in:
parent
1de9ec764b
commit
f66a8aa6ef
@ -15,6 +15,8 @@ export async function POST(req: NextRequest): Promise<Response> {
|
|||||||
const isCollectionUpdate = collectionWebhooks.includes(topic);
|
const isCollectionUpdate = collectionWebhooks.includes(topic);
|
||||||
const isProductUpdate = productWebhooks.includes(topic);
|
const isProductUpdate = productWebhooks.includes(topic);
|
||||||
|
|
||||||
|
console.log('Revalidation attempt', topic, isCollectionUpdate, isProductUpdate);
|
||||||
|
|
||||||
if (!secret || secret !== process.env.SHOPIFY_REVALIDATION_SECRET) {
|
if (!secret || secret !== process.env.SHOPIFY_REVALIDATION_SECRET) {
|
||||||
console.error('Invalid revalidation secret.');
|
console.error('Invalid revalidation secret.');
|
||||||
return NextResponse.json({ status: 200 });
|
return NextResponse.json({ status: 200 });
|
||||||
|
@ -6,7 +6,7 @@ import { Suspense } from 'react';
|
|||||||
export const runtime = 'edge';
|
export const runtime = 'edge';
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
description: 'High-performance ecommerce store built with Next.js, Vercel, and Shopify.',
|
description: 'Scape Squared: High-performance ecommerce store built with Next.js, Vercel, and Shopify.',
|
||||||
openGraph: {
|
openGraph: {
|
||||||
type: 'website'
|
type: 'website'
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user