From f3d9ccde5622902cd35936457760cb58aa08a892 Mon Sep 17 00:00:00 2001 From: Paul Bailey Date: Tue, 2 Dec 2025 13:17:12 +0000 Subject: [PATCH] Remove manual redirect from home page - let middleware handle auth - Middleware already handles authentication redirects - Prevents error boundary from catching redirect errors - Cleaner separation of concerns --- app/page.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index cbbcefd..6e3ef9d 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -5,18 +5,11 @@ 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() - - // Redirect to login if not authenticated - if (!session?.user) { - redirect('/auth/login') - } - const lists = await getLists() return (