diff --git a/app/page.tsx b/app/page.tsx index 6e3ef9d..f8c84c9 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -5,11 +5,17 @@ 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 session = await auth() + + if (!session?.user) { + redirect('/auth/login') + } + const lists = await getLists() return (