From c74b557e85b5fa23130196ce2a9a59b98ba10c92 Mon Sep 17 00:00:00 2001 From: Alex Risch Date: Fri, 3 Jul 2026 09:01:57 -0400 Subject: [PATCH] fix: redirect legacy developers docs paths Amp-Thread-ID: https://ampcode.com/threads/T-019f27f8-19b7-71de-a25b-146258ec8101 Co-authored-by: Amp --- src/lib/docs-routing.test.ts | 2 ++ vercel.json | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/src/lib/docs-routing.test.ts b/src/lib/docs-routing.test.ts index fa51820b..d9363ce4 100644 --- a/src/lib/docs-routing.test.ts +++ b/src/lib/docs-routing.test.ts @@ -106,6 +106,8 @@ describe('docs routing redirects', () => { ['/tools', '/docs/tools'], ['/tools/:path*', '/docs/tools/:path*'], ['/partners', '/docs/partners'], + ['/developers/:section(guide|protocol)/:path*', '/developers/docs/:section/:path*'], + ['/developers/learn', '/developers/docs'], ['/api', '/docs/api'], ['/api/authentication', '/docs/api/authentication'], ['/api/conventions', '/docs/api/conventions'], diff --git a/vercel.json b/vercel.json index ae73a14d..b3a88941 100644 --- a/vercel.json +++ b/vercel.json @@ -230,6 +230,16 @@ "destination": "https://accounts.tempo.xyz/:path*", "permanent": true }, + { + "source": "/developers/:section(guide|protocol)/:path*", + "destination": "/developers/docs/:section/:path*", + "permanent": true + }, + { + "source": "/developers/learn", + "destination": "/developers/docs", + "permanent": true + }, { "source": "/api", "destination": "/docs/api",