Skip to content

Commit

Permalink
feat: add redirect for v2 contract guides
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg committed Jan 8, 2025
1 parent 6036543 commit a5eb9a2
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,6 @@ const config: Config = {
from: "/concepts/sablier-protocol",
to: "/concepts/what-is-sablier",
},
{
from: "/contracts/v1/deployments",
to: "/guides/legacy/deployments",
},
{
from: "/contracts/v2/deployments/v2.0",
to: "/guides/lockup/previous-deployments/v1.0",
Expand All @@ -146,6 +142,10 @@ const config: Config = {
from: "/contracts/v2/deployments/v2.1",
to: "/guides/lockup/previous-deployments/v1.1",
},
{
from: "/contracts/v2/guides",
to: "/guides/lockup/overview",
},
{
from: "/contracts/v2/reference/overview",
to: "/reference/overview",
Expand All @@ -159,14 +159,6 @@ const config: Config = {
to: "/apps/guides/csv-support",
},
// Legacy redirects
{
from: "/contracts/v1/guides/getting-started",
to: "/guides/legacy/overview",
},
{
from: "/contracts/v1/overview",
to: "/guides/legacy/overview",
},
{
from: "/protocol/faq/basics",
to: "/concepts/what-is-sablier",
Expand All @@ -187,6 +179,18 @@ const config: Config = {
from: "/protocol/subgraphs/endpoints",
to: "/api/overview",
},
{
from: "/contracts/v1/deployments",
to: "/guides/legacy/deployments",
},
{
from: "/contracts/v1/guides/getting-started",
to: "/guides/legacy/overview",
},
{
from: "/contracts/v1/overview",
to: "/guides/legacy/overview",
},
],
createRedirects(existingPath) {
const redirects = [];
Expand Down

0 comments on commit a5eb9a2

Please sign in to comment.