File tree 1 file changed +0
-9
lines changed
1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,6 @@ const deployedTranslations = [
27
27
// It must be the same between all translations.
28
28
] ;
29
29
30
- let shouldPreventIndexing = false ;
31
- if (
32
- siteConfig . languageCode !== 'en' &&
33
- ! deployedTranslations . includes ( siteConfig . languageCode )
34
- ) {
35
- shouldPreventIndexing = true ;
36
- }
37
-
38
30
function getDomain ( languageCode : string ) : string {
39
31
const subdomain = languageCode === 'en' ? '' : languageCode + '.' ;
40
32
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 }
You can’t perform that action at this time.
0 commit comments