admin管理员组文章数量:1415476
enter image description here
no-index I get in robot meta tag
I want index instead of no-index.
I’m using the Next.js App Router and I'm trying to add a robots meta tag to allow search engines to index my page. However, despite setting index: true in the metadata object, the rendered HTML always shows <meta name="robots" content="noindex"/>
.
Here’s my configuration:
export const metadata = {
robots: {
index: true, // Allow search engines to index this page
follow: true, // Allow search engines to follow links on this page
nocache: false, // Allow caching of this page
googleBot: {
index: true,
follow: true,
noimageindex: false, // Allow Google to index images on this page
'max-video-preview': -1,
'max-image-preview': 'large',
'max-snippet': -1,
},
},
};
export default function Page() {
return (
<div>
<h1>Welcome to My Next.js App</h1>
<p>This page is indexable by search engines.</p>
</div>
);
}
本文标签:
版权声明:本文标题:reactjs - In NextJS project I used app router for my web application. I got no-index in meta tag in page source I am not aware w 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745163876a2645578.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论