From 85dc71fb546065406357ff209f9beb1bd479d4bb Mon Sep 17 00:00:00 2001 From: Jonas Daniels Date: Tue, 10 Jun 2025 17:21:00 -0700 Subject: [PATCH] [Dashboard] Update URL rewrites for grants and superchain pages --- apps/dashboard/framer-rewrites.js | 3 ++- apps/dashboard/redirects.js | 6 ++++++ .../connect/account-abstraction/AccountAbstractionPage.tsx | 2 +- apps/portal/src/app/account/billing/credits/page.mdx | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/framer-rewrites.js b/apps/dashboard/framer-rewrites.js index 665d46d5ad2..6aff982979a 100644 --- a/apps/dashboard/framer-rewrites.js +++ b/apps/dashboard/framer-rewrites.js @@ -40,7 +40,8 @@ module.exports = [ "/community/ambassadors", "/community/startup-program", // -- grants -- - "/grant/superchain", + "/grants", + "/superchain", // -- templates -- "/templates", "/templates/:template_slug", diff --git a/apps/dashboard/redirects.js b/apps/dashboard/redirects.js index 64a6174fd8f..a10eabbf1bf 100644 --- a/apps/dashboard/redirects.js +++ b/apps/dashboard/redirects.js @@ -368,6 +368,12 @@ async function redirects() { destination: "/learn/guides", permanent: false, }, + // redirect to /grant/superchain to /superchain + { + source: "/grant/superchain", + destination: "/superchain", + permanent: false, + }, ...legacyDashboardToTeamRedirects, ]; diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/account-abstraction/AccountAbstractionPage.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/account-abstraction/AccountAbstractionPage.tsx index 1a47f4c6998..6e2540fa19b 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/account-abstraction/AccountAbstractionPage.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/account-abstraction/AccountAbstractionPage.tsx @@ -110,7 +110,7 @@ function GasCreditAlert(props: { target="_blank" label="superchain-landing" category={TRACKING_CATEGORY} - href="https://thirdweb.com/grant/superchain" + href="https://thirdweb.com/superchain" > Learn More diff --git a/apps/portal/src/app/account/billing/credits/page.mdx b/apps/portal/src/app/account/billing/credits/page.mdx index 5c68ac5f5b0..db5b97a56ea 100644 --- a/apps/portal/src/app/account/billing/credits/page.mdx +++ b/apps/portal/src/app/account/billing/credits/page.mdx @@ -16,7 +16,7 @@ export const metadata = createMetadata({ Credits let you cover the costs of using thirdweb services. There are currently two types of credits available on thirdweb: - **Optimism Superchain Credits** -Optimism superchain credits are redeemed from a program which aims to enable developers to create seamless web3 user onboarding experiences powered by Smart Accounts. [Learn more about the OP Superchain program.](https://thirdweb.com/grant/superchain) +Optimism superchain credits are redeemed from a program which aims to enable developers to create seamless web3 user onboarding experiences powered by Smart Accounts. [Learn more about the OP Superchain program.](https://thirdweb.com/superchain) - **Service Credits**: These credits can be applied across any thirdweb service on any chain. This includes usage across In-App Wallets, RPC, and IPFS storage. To get thirdweb credits, apply to join the [startup program.](https://thirdweb.com/community/startup-program).