Skip to content

Commit 972cd8f

Browse files
Zeff01claude
andcommitted
Fix admin-dashboard prerender error during build
- Add export const dynamic = "force-dynamic" to prevent prerendering - Fixes Vercel build error: "Supabase environment variables not configured" - Maintains ISR with 60 second revalidation for runtime 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2a4ef9d commit 972cd8f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • apps/codebility/app/home/admin-dashboard

‎apps/codebility/app/home/admin-dashboard/page.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import AdminDashboardTotalInactiveIntern from "./_components/AdminDashboardTotal
1313
import AdminDashboardTotalMentor from "./_components/AdminDashboardTotalMentor";
1414
import AdminDashboardTotalProjects from "./_components/AdminDashboardTotalProject";
1515

16+
// Force dynamic rendering to avoid prerender errors with Supabase env vars
17+
export const dynamic = "force-dynamic";
1618
// Use ISR with 60 second revalidation for dashboard stats
1719
export const revalidate = 60;
1820

0 commit comments

Comments
 (0)