Remove root page.tsx redirect so landing page renders at /
The root src/app/page.tsx was redirecting all visitors to /login, preventing the (public)/page.tsx landing page from rendering at /. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3e242c3359
commit
61ad63ce35
1 changed files with 0 additions and 15 deletions
|
|
@ -1,15 +0,0 @@
|
||||||
'use client';
|
|
||||||
|
|
||||||
import { useEffect } from 'react';
|
|
||||||
import { useRouter } from 'next/navigation';
|
|
||||||
|
|
||||||
export default function RootPage() {
|
|
||||||
const router = useRouter();
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
// Redirect to login page
|
|
||||||
router.push('/login');
|
|
||||||
}, [router]);
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue