Skip to content

Commit b9548d0

Browse files
Copilothuangyiirene
andcommitted
Add root page.tsx to enable middleware for homepage
Co-authored-by: huangyiirene <[email protected]>
1 parent 4b70311 commit b9548d0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/site/app/page.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { redirect } from 'next/navigation';
2+
3+
/**
4+
* Root page - redirects are handled by proxy.ts middleware
5+
* This page should never actually render as the middleware intercepts and redirects
6+
* But Next.js requires a page component for the route to be recognized
7+
*/
8+
export default function RootPage() {
9+
// Fallback redirect if middleware didn't handle it
10+
redirect('/en/docs');
11+
}

0 commit comments

Comments
 (0)