We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae9956c commit b46e881Copy full SHA for b46e881
middleware/robots.js
@@ -15,7 +15,10 @@ Object.values(languages)
15
Object.values(products)
16
.filter(product => product.wip || product.hidden)
17
.forEach(product => {
18
- defaultResponse = defaultResponse.concat(`\nDisallow: /*${product.href}\nDisallow: /*/enterprise/*/user${product.href}`)
+ defaultResponse = defaultResponse.concat(`\nDisallow: /*${product.href}`)
19
+ product.versions.forEach(version => {
20
+ defaultResponse = defaultResponse.concat(`\nDisallow: /*${version}/${product.id}`)
21
+ })
22
})
23
24
// Disallow crawling of Deprecated enterprise versions
0 commit comments