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 558f711Copy full SHA for 558f711
1 file changed
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
@@ -34,6 +35,15 @@ export const startProject = {
34
35
showNetlifyUrl: true,
36
// hide stackblitz until they support Async Local Storage
37
hideStackblitzUrl: true,
38
+ handleRedirects: (href) => {
39
+ if (
40
+ href.match(/\/start\/latest\/docs\/framework\/(react|solid)\/api-routes/)
41
+ ) {
42
+ throw redirect({
43
+ href: href.replace('/api-routes', '/server-routes'),
44
+ })
45
+ }
46
+ },
47
menu: [
48
{
49
icon: <BiBookAlt />,
0 commit comments