From f66a8aa6ef456ec1c63ad36526a092d66f48ccf9 Mon Sep 17 00:00:00 2001 From: Samantha Kellow Date: Fri, 1 Sep 2023 10:58:02 +0100 Subject: [PATCH] metadata update and clog --- app/api/revalidate/route.ts | 2 ++ app/page.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/revalidate/route.ts b/app/api/revalidate/route.ts index 94ddfff9b..4fbd0594c 100644 --- a/app/api/revalidate/route.ts +++ b/app/api/revalidate/route.ts @@ -15,6 +15,8 @@ export async function POST(req: NextRequest): Promise { const isCollectionUpdate = collectionWebhooks.includes(topic); const isProductUpdate = productWebhooks.includes(topic); + console.log('Revalidation attempt', topic, isCollectionUpdate, isProductUpdate); + if (!secret || secret !== process.env.SHOPIFY_REVALIDATION_SECRET) { console.error('Invalid revalidation secret.'); return NextResponse.json({ status: 200 }); diff --git a/app/page.tsx b/app/page.tsx index aefd19396..322a755f7 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -6,7 +6,7 @@ import { Suspense } from 'react'; export const runtime = 'edge'; 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: { type: 'website' }