Remove "robot=noindex" meta tag (#6260)

This commit is contained in:
Soichiro Miki
2023-09-20 19:47:47 +09:00
committed by GitHub
parent cbeb0ba2f6
commit dfd15e87a2

View File

@@ -27,14 +27,6 @@ const deployedTranslations = [
// It must be the same between all translations.
];
let shouldPreventIndexing = false;
if (
siteConfig.languageCode !== 'en' &&
!deployedTranslations.includes(siteConfig.languageCode)
) {
shouldPreventIndexing = true;
}
function getDomain(languageCode: string): string {
const subdomain = languageCode === 'en' ? '' : languageCode + '.';
return subdomain + 'react.dev';
@@ -70,7 +62,6 @@ export const Seo = withRouter(
href={canonicalUrl.replace(siteDomain, getDomain('en'))}
hrefLang="x-default"
/>
{shouldPreventIndexing && <meta name="robots" content="noindex" />}
{deployedTranslations.map((languageCode) => (
<link
key={'alt-' + languageCode}