We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbeb0ba commit dfd15e8Copy full SHA for dfd15e8
src/components/Seo.tsx
@@ -27,14 +27,6 @@ const deployedTranslations = [
27
// It must be the same between all translations.
28
];
29
30
-let shouldPreventIndexing = false;
31
-if (
32
- siteConfig.languageCode !== 'en' &&
33
- !deployedTranslations.includes(siteConfig.languageCode)
34
-) {
35
- shouldPreventIndexing = true;
36
-}
37
-
38
function getDomain(languageCode: string): string {
39
const subdomain = languageCode === 'en' ? '' : languageCode + '.';
40
return subdomain + 'react.dev';
@@ -70,7 +62,6 @@ export const Seo = withRouter(
70
62
href={canonicalUrl.replace(siteDomain, getDomain('en'))}
71
63
hrefLang="x-default"
72
64
/>
73
- {shouldPreventIndexing && <meta name="robots" content="noindex" />}
74
65
{deployedTranslations.map((languageCode) => (
75
66
<link
76
67
key={'alt-' + languageCode}
0 commit comments