Skip to content

Commit 96ebf37

Browse files
committed
Playground: Redirect corrections (#8087)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## 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}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent b7732d3 commit 96ebf37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/playground-web/next.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ const nextConfig = {
148148
permanent: false,
149149
},
150150
{
151-
source: "/insight",
151+
source: "/insight/:path*",
152152
destination: "https://insight.thirdweb.com/reference",
153153
permanent: false,
154154
},
155155
{
156-
source: "/payments/backend",
156+
source: "/payments/backend/:path*",
157157
destination: "/reference#tag/payments",
158158
permanent: false,
159159
},

0 commit comments

Comments
 (0)