How to add noindex in metadata on nextjs 13?
Tried to add to "noindex: true" with no success here:
export const metadata = {
title: "Website title",
description:
"My description",
};
How to add noindex in metadata on nextjs 13?
Tried to add to "noindex: true" with no success here:
export const metadata = {
title: "Website title",
description:
"My description",
};
In Next.js 14, you set it via metadata as follows:
export const metadata = {
title: "Website title",
description: "My description",
robots: {
index: false,
follow: false,
},
};
export const metadata = {
robots: {
index: false,
follow: true,
nocache: true,
googleBot: {
index: true,
follow: false,
noimageindex: true,
'max-video-preview': -1,
'max-image-preview': 'large',
'max-snippet': -1,
},
},
};
© 2022 - 2024 — McMap. All rights reserved.