mirror of
https://github.com/vercel/commerce.git
synced 2025-05-20 00:16:59 +00:00
Rename hide to indexable because variable name was not representing the actual meaning
This commit is contained in:
parent
45afbc548e
commit
f40b7f95c3
@ -23,17 +23,17 @@ export async function generateMetadata({
|
|||||||
if (!product) return notFound();
|
if (!product) return notFound();
|
||||||
|
|
||||||
const { url, width, height, altText: alt } = product.featuredImage || {};
|
const { url, width, height, altText: alt } = product.featuredImage || {};
|
||||||
const hide = !product.tags.includes(HIDDEN_PRODUCT_TAG);
|
const indexable = !product.tags.includes(HIDDEN_PRODUCT_TAG);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: product.seo.title || product.title,
|
title: product.seo.title || product.title,
|
||||||
description: product.seo.description || product.description,
|
description: product.seo.description || product.description,
|
||||||
robots: {
|
robots: {
|
||||||
index: hide,
|
index: indexable,
|
||||||
follow: hide,
|
follow: indexable,
|
||||||
googleBot: {
|
googleBot: {
|
||||||
index: hide,
|
index: indexable,
|
||||||
follow: hide
|
follow: indexable
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
openGraph: url
|
openGraph: url
|
||||||
|
Loading…
x
Reference in New Issue
Block a user