From 96ebf378ffbd24f586fcf520c24f64874cafe9ee Mon Sep 17 00:00:00 2001 From: MananTank Date: Sat, 20 Sep 2025 01:10:38 +0000 Subject: [PATCH] Playground: Redirect corrections (#8087) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on updating the routing configuration in the `next.config.mjs` file to allow for dynamic path segments in specific routes. ### Detailed summary - Changed `source` for `/insight` to `/insight/:path*`, allowing for dynamic paths. - Changed `source` for `/payments/backend` to `/payments/backend/:path*`, enabling dynamic path handling. - Both routes maintain their respective `destination` and `permanent` settings. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` ## Summary by CodeRabbit * **Bug Fixes** * Fixed redirects for /insight and /payments/backend to handle nested paths, ensuring deep links (e.g., subpages) correctly route to their destinations without 404s. * Maintains existing base redirects and leaves other routes untouched, improving navigation reliability without altering overall site behavior. --- apps/playground-web/next.config.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/playground-web/next.config.mjs b/apps/playground-web/next.config.mjs index 48675364033..b6f239b9857 100644 --- a/apps/playground-web/next.config.mjs +++ b/apps/playground-web/next.config.mjs @@ -148,12 +148,12 @@ const nextConfig = { permanent: false, }, { - source: "/insight", + source: "/insight/:path*", destination: "https://insight.thirdweb.com/reference", permanent: false, }, { - source: "/payments/backend", + source: "/payments/backend/:path*", destination: "/reference#tag/payments", permanent: false, },