1
0
mirror of synced 2025-12-21 10:57:10 -05:00

update references

This commit is contained in:
Sarah Schneider
2021-04-01 15:29:59 -04:00
parent 229549621d
commit c7f647f68a
9 changed files with 32 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
const languages = require('../lib/languages')
const products = require('../lib/all-products')
const { productMap } = require('../lib/all-products')
const { deprecated } = require('../lib/enterprise-server-releases.js')
const pathRegExps = [
@@ -9,7 +9,7 @@ const pathRegExps = [
.map(language => new RegExp(`^/${language.code}(/.*)?$`, 'i')),
// Disallow indexing of WIP products
...Object.values(products)
...Object.values(productMap)
.filter(product => product.wip || product.hidden)
.map(product => [
new RegExp(`^/.*?${product.href}`, 'i'),