Feat: Add Docusaurus redirect capability (#4435)

* added-package-tested-and-works

* starter-redirect
This commit is contained in:
Mendon Kissling 2024-11-07 06:59:40 -05:00 • committed by GitHub
commit 4cc9912f1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 715 additions and 1136 deletions

View file

@ -78,6 +78,22 @@ const config = {
plugins: [
["docusaurus-node-polyfills", { excludeAliases: ["console"] }],
"docusaurus-plugin-image-zoom",
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
// {
// to: '/My-Collection',
// from: '/365085a8-a90a-43f9-a779-f8769ec7eca1',
// },
// add more redirects like this
// {
// to: '/docs/anotherpage',
// from: ['/docs/legacypage1', '/docs/legacypage2'],
// },
],
},
],
// ....
async function myPlugin(context, options) {
return {