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,
|
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({
|
||||||
|
|||||||
@ -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,
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user