docs(nxdev): add redirect rule for add-to-monorepo recipe (#12580)

This commit is contained in:
Benjamin Cabanes 2022-10-13 15:04:02 -04:00 committed by GitHub
parent 332705365b
commit f4d9b3dc2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -171,6 +171,14 @@ module.exports = withNx({
permanent: true, permanent: true,
}); });
} }
// Recipes doc restructure
for (let s of Object.keys(redirectRules.recipesUrls)) {
rules.push({
source: s,
destination: redirectRules.recipesUrls[s],
permanent: true,
});
}
// Landing pages // Landing pages
rules.push({ rules.push({

View File

@ -314,6 +314,12 @@ const cliUrls = {
'/cli/connect-to-nx-cloud': '/nx/connect-to-nx-cloud', '/cli/connect-to-nx-cloud': '/nx/connect-to-nx-cloud',
'/cli/reset': '/nx/reset', '/cli/reset': '/nx/reset',
}; };
/**
* Recipes
*/
const recipesUrls = {
'/recipe/adding-to-monorepo': '/recipes/adopting-nx/adding-to-monorepo',
};
/** /**
* Public export API * Public export API
@ -323,5 +329,6 @@ module.exports = {
diataxis, diataxis,
guideUrls, guideUrls,
overviewUrls, overviewUrls,
recipesUrls,
schemaUrls, schemaUrls,
}; };