From 1ed655252a23b901ad75e5ec2fa46335474ef6d5 Mon Sep 17 00:00:00 2001 From: Jonas Daniels Date: Tue, 17 Jun 2025 16:16:07 -0700 Subject: [PATCH] [Dashboard] Update rewrites and redirects for Connect to Build migration --- apps/dashboard/framer-rewrites.js | 18 +++++----- apps/dashboard/redirects.js | 58 ++++++++++++++++++------------- 2 files changed, 42 insertions(+), 34 deletions(-) diff --git a/apps/dashboard/framer-rewrites.js b/apps/dashboard/framer-rewrites.js index 6aff982979a..a70a4a21f41 100644 --- a/apps/dashboard/framer-rewrites.js +++ b/apps/dashboard/framer-rewrites.js @@ -6,13 +6,14 @@ module.exports = [ "/bounties", "/contact-us", // -- product landing pages -- - // -- connect - "/connect", - "/connect/sign-in", - "/connect/account-abstraction", - "/connect/universal-bridge", - "/connect/auth", - "/connect/in-app-wallets", + // -- build category + "/wallets", + "/account-abstraction", + "/universal-bridge", + "/auth", + "/in-app-wallets", + "/transactions", + // -- end build category // -- storage "/storage", // -- nebula @@ -24,8 +25,7 @@ module.exports = [ "/contracts/modular-contracts", "/contracts/explore", "/contracts/deployment-tool", - // -- engine - "/engine", + // -- solutions pages -- "/solutions/:solution_slug", // -- campaigns -- diff --git a/apps/dashboard/redirects.js b/apps/dashboard/redirects.js index 8e4cfc42bd7..837fa6a5c5c 100644 --- a/apps/dashboard/redirects.js +++ b/apps/dashboard/redirects.js @@ -238,11 +238,6 @@ async function redirects() { destination: "/contracts/explore", permanent: false, }, - { - source: "/build", - destination: "/contracts/modular-contracts", - permanent: false, - }, { source: "/ui-components", destination: "/sdk", @@ -319,28 +314,10 @@ async function redirects() { destination: "/templates/:slug", permanent: false, }, - // redirect /account-abstraction to /connect/account-abstraction - { - source: "/account-abstraction", - destination: "/connect/account-abstraction", - permanent: false, - }, - // redirect /connect/pay to /connect/universal-bridge + // redirect /connect/pay to /universal-bridge { source: "/connect/pay", - destination: "/connect/universal-bridge", - permanent: false, - }, - // redirect /auth to /connect/auth - { - source: "/auth", - destination: "/connect/auth", - permanent: false, - }, - // redirect /in-app-wallets to /connect/in-app-wallets - { - source: "/in-app-wallets", - destination: "/connect/in-app-wallets", + destination: "/universal-bridge", permanent: false, }, // PREVIOUS CAMPAIGNS @@ -374,6 +351,37 @@ async function redirects() { destination: "/superchain", permanent: false, }, + // connect -> build redirects + { + source: "/connect", + destination: "/wallets", + permanent: false, + }, + { + source: "/connect/account-abstraction", + destination: "/account-abstraction", + permanent: false, + }, + { + source: "/connect/universal-bridge", + destination: "/universal-bridge", + permanent: false, + }, + { + source: "/connect/auth", + destination: "/auth", + permanent: false, + }, + { + source: "/connect/in-app-wallets", + destination: "/in-app-wallets", + permanent: false, + }, + { + source: "/engine", + destination: "/transactions", + permanent: false, + }, ...legacyDashboardToTeamRedirects, ];