- Create src/app/app/ directory - Move the main app component (dashboard) to src/app/app/page.tsx - Replace src/app/page.tsx with a redirect to /login - Update tasks.md to mark 8.2 as complete This establishes the /app workspace route for the authenticated app while the root / will redirect to login. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
15 lines
275 B
TypeScript
15 lines
275 B
TypeScript
'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;
|
|
}
|