candle-annotator/src/app/page.tsx
Marko Djordjevic 985f459bd7 Task 8.2: Move src/app/page.tsx to src/app/app/page.tsx
- 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>
2026-02-20 13:14:15 +01:00

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;
}