Skip to content

Commit

Permalink
Remove "robot=noindex" meta tag (#6260)
Browse files Browse the repository at this point in the history
  • Loading branch information
smikitky authored Sep 20, 2023
1 parent cbeb0ba commit dfd15e8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/components/Seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit dfd15e8

Please sign in to comment.