We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 085bb1d commit c5df631Copy full SHA for c5df631
src/libraries/start.tsx
@@ -5,6 +5,7 @@ import { BiBookAlt } from 'react-icons/bi'
5
import { PiRocketLaunchDuotone, PiTreeStructureBold } from 'react-icons/pi'
6
import { TbServerBolt } from 'react-icons/tb'
7
import { twMerge } from 'tailwind-merge'
8
+import { redirect } from '@tanstack/react-router'
9
10
const repo = 'tanstack/router'
11
@@ -150,4 +151,13 @@ export const startProject = {
150
151
),
152
},
153
],
154
+ handleRedirects: (href) => {
155
+ if (
156
+ href.match(/\/start\/latest\/docs\/framework\/(react|solid)\/api-routes/)
157
+ ) {
158
+ throw redirect({
159
+ href: href.replace('/api-routes', '/server-routes'),
160
+ })
161
+ }
162
+ },
163
} satisfies Library
0 commit comments