From b90687c1832032f407885443663317d8fdd034ff Mon Sep 17 00:00:00 2001 From: Kunal Keshari Pattanaik Date: Thu, 9 Jul 2026 23:09:34 +0530 Subject: [PATCH] fix: repair diagnostic page guard --- app/diagnostic/page.tsx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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 = {