diff --git a/app/page.tsx b/app/page.tsx index fcea3fc..cbbcefd 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -5,12 +5,19 @@ import GlobalSearch from '@/components/GlobalSearch' import EmptyState from '@/components/EmptyState' import Link from 'next/link' import { auth } from '@/auth' +import { redirect } from 'next/navigation' export const dynamic = 'force-dynamic' export default async function Home() { - const lists = await getLists() const session = await auth() + + // Redirect to login if not authenticated + if (!session?.user) { + redirect('/auth/login') + } + + const lists = await getLists() return (