diff --git a/docusaurus.config.js b/docusaurus.config.js index 1a7dcb01..f3730bbe 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -155,6 +155,19 @@ const config = { debug: false, }, }), + plugins: [ + [ + '@docusaurus/plugin-client-redirects', + { + redirects: [ + { + to: '/category/archive', + from: '/archive', + }, + ], + }, + ], + ], }; module.exports = config; diff --git a/package.json b/package.json index fdd37c60..9862e81c 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "dependencies": { "@docsearch/js": "^3.8.3", "@docusaurus/core": "^3.7.0", + "@docusaurus/plugin-client-redirects": "^3.7.0", "@docusaurus/preset-classic": "^3.7.0", "@mdx-js/react": "^3.1.0", "clsx": "^2.1.1",