docs(nxdev): add redirect rule for add-to-monorepo recipe (#12580)
This commit is contained in:
parent
332705365b
commit
f4d9b3dc2e
@ -171,6 +171,14 @@ module.exports = withNx({
|
||||
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
|
||||
rules.push({
|
||||
|
||||
@ -314,6 +314,12 @@ const cliUrls = {
|
||||
'/cli/connect-to-nx-cloud': '/nx/connect-to-nx-cloud',
|
||||
'/cli/reset': '/nx/reset',
|
||||
};
|
||||
/**
|
||||
* Recipes
|
||||
*/
|
||||
const recipesUrls = {
|
||||
'/recipe/adding-to-monorepo': '/recipes/adopting-nx/adding-to-monorepo',
|
||||
};
|
||||
|
||||
/**
|
||||
* Public export API
|
||||
@ -323,5 +329,6 @@ module.exports = {
|
||||
diataxis,
|
||||
guideUrls,
|
||||
overviewUrls,
|
||||
recipesUrls,
|
||||
schemaUrls,
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user