diff --git a/lib/shopify/index.ts b/lib/shopify/index.ts index 677b4dd58..1970d94e0 100644 --- a/lib/shopify/index.ts +++ b/lib/shopify/index.ts @@ -435,7 +435,7 @@ export async function revalidate(req: NextRequest): Promise { if (!secret || secret !== process.env.SHOPIFY_REVALIDATION_SECRET) { console.error('Invalid revalidation secret.'); - return NextResponse.json({ status: 200 }); + return NextResponse.json({ status: 401 }); } if (!isCollectionUpdate && !isProductUpdate) {