diff --git a/app/diagnostic/page.tsx b/app/diagnostic/page.tsx index 8b72e563..625d8fd5 100644 --- a/app/diagnostic/page.tsx +++ b/app/diagnostic/page.tsx @@ -2,20 +2,6 @@ import { notFound } from 'next/navigation'; import { createServer } from '@/lib/supabase/server'; export default async function DiagnosticPage() { - restrict-diagnostic-page - - // Restrict diagnostic page in production - if (process.env.NODE_ENV === 'production') { - return ( -
-

- Access Denied -

-
- ); - } - const supabase = createClient(); - const diagnosticsEnabled = process.env.NODE_ENV !== 'production' && process.env.ENABLE_DIAGNOSTIC_PAGE === 'true'; @@ -24,7 +10,7 @@ export default async function DiagnosticPage() { notFound(); } - main + const supabase = await createServer(); // Check if tables exist by trying to query them let tablesStatus = {