Skip to content

Commit bb09e20

Browse files
authored
[Dashboard] Update rewrites and redirects for Connect to Build migration (#7362)
1 parent 78b9c8e commit bb09e20

File tree

2 files changed

+42
-34
lines changed

2 files changed

+42
-34
lines changed

apps/dashboard/framer-rewrites.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ module.exports = [
66
"/bounties",
77
"/contact-us",
88
// -- product landing pages --
9-
// -- connect
10-
"/connect",
11-
"/connect/sign-in",
12-
"/connect/account-abstraction",
13-
"/connect/universal-bridge",
14-
"/connect/auth",
15-
"/connect/in-app-wallets",
9+
// -- build category
10+
"/wallets",
11+
"/account-abstraction",
12+
"/universal-bridge",
13+
"/auth",
14+
"/in-app-wallets",
15+
"/transactions",
16+
// -- end build category
1617
// -- storage
1718
"/storage",
1819
// -- nebula
@@ -24,8 +25,7 @@ module.exports = [
2425
"/contracts/modular-contracts",
2526
"/contracts/explore",
2627
"/contracts/deployment-tool",
27-
// -- engine
28-
"/engine",
28+
2929
// -- solutions pages --
3030
"/solutions/:solution_slug",
3131
// -- campaigns --

apps/dashboard/redirects.js

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,6 @@ async function redirects() {
238238
destination: "/contracts/explore",
239239
permanent: false,
240240
},
241-
{
242-
source: "/build",
243-
destination: "/contracts/modular-contracts",
244-
permanent: false,
245-
},
246241
{
247242
source: "/ui-components",
248243
destination: "/sdk",
@@ -319,28 +314,10 @@ async function redirects() {
319314
destination: "/templates/:slug",
320315
permanent: false,
321316
},
322-
// redirect /account-abstraction to /connect/account-abstraction
323-
{
324-
source: "/account-abstraction",
325-
destination: "/connect/account-abstraction",
326-
permanent: false,
327-
},
328-
// redirect /connect/pay to /connect/universal-bridge
317+
// redirect /connect/pay to /universal-bridge
329318
{
330319
source: "/connect/pay",
331-
destination: "/connect/universal-bridge",
332-
permanent: false,
333-
},
334-
// redirect /auth to /connect/auth
335-
{
336-
source: "/auth",
337-
destination: "/connect/auth",
338-
permanent: false,
339-
},
340-
// redirect /in-app-wallets to /connect/in-app-wallets
341-
{
342-
source: "/in-app-wallets",
343-
destination: "/connect/in-app-wallets",
320+
destination: "/universal-bridge",
344321
permanent: false,
345322
},
346323
// PREVIOUS CAMPAIGNS
@@ -374,6 +351,37 @@ async function redirects() {
374351
destination: "/superchain",
375352
permanent: false,
376353
},
354+
// connect -> build redirects
355+
{
356+
source: "/connect",
357+
destination: "/wallets",
358+
permanent: false,
359+
},
360+
{
361+
source: "/connect/account-abstraction",
362+
destination: "/account-abstraction",
363+
permanent: false,
364+
},
365+
{
366+
source: "/connect/universal-bridge",
367+
destination: "/universal-bridge",
368+
permanent: false,
369+
},
370+
{
371+
source: "/connect/auth",
372+
destination: "/auth",
373+
permanent: false,
374+
},
375+
{
376+
source: "/connect/in-app-wallets",
377+
destination: "/in-app-wallets",
378+
permanent: false,
379+
},
380+
{
381+
source: "/engine",
382+
destination: "/transactions",
383+
permanent: false,
384+
},
377385

378386
...legacyDashboardToTeamRedirects,
379387
];

0 commit comments

Comments
 (0)