mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 06:32:32 +00:00
fixing response status code for no secret or wrong secret (#1397)
This commit is contained in:
parent
ce004c05fa
commit
8d4cc9a9a7
@ -435,7 +435,7 @@ export async function revalidate(req: NextRequest): Promise<NextResponse> {
|
||||
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user