From dfd15e87a2c7f94da61cad991712fb6ff2f896ce Mon Sep 17 00:00:00 2001 From: Soichiro Miki Date: Wed, 20 Sep 2023 19:47:47 +0900 Subject: [PATCH] Remove "robot=noindex" meta tag (#6260) --- src/components/Seo.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/components/Seo.tsx b/src/components/Seo.tsx index d7b20cc9938..d0dcaab754a 100644 --- a/src/components/Seo.tsx +++ b/src/components/Seo.tsx @@ -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 && } {deployedTranslations.map((languageCode) => (