From 73e318a106ccda3dcedf6c16cfe43394420df201 Mon Sep 17 00:00:00 2001 From: mukeshs Date: Fri, 21 Nov 2025 15:36:35 +0530 Subject: [PATCH] past image resolved --- src/app/faculty/[id]/page.tsx | 17 ++++------------- src/components/faculty/TeamListing.tsx | 2 +- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/app/faculty/[id]/page.tsx b/src/app/faculty/[id]/page.tsx index efabe16..27f618b 100644 --- a/src/app/faculty/[id]/page.tsx +++ b/src/app/faculty/[id]/page.tsx @@ -6,6 +6,9 @@ import { notFound } from 'next/navigation'; import { FacultyService } from '../../../lib/facultyData'; import type { Metadata } from 'next'; +// Force dynamic rendering +export const dynamic = 'force-dynamic'; + export default async function FacultyPage({ params, }: { @@ -33,19 +36,7 @@ export default async function FacultyPage({ ); } -// Generate static params -export async function generateStaticParams() { - try { - const teamMembers = await FacultyService.getAllFaculty(); - - return teamMembers.map((member) => ({ - id: member.id.toString(), - })); - } catch (error) { - console.error('Error generating static params:', error); - return []; - } -} +// REMOVE generateStaticParams entirely // Generate metadata export async function generateMetadata({ diff --git a/src/components/faculty/TeamListing.tsx b/src/components/faculty/TeamListing.tsx index 683c0ce..0aac4ac 100644 --- a/src/components/faculty/TeamListing.tsx +++ b/src/components/faculty/TeamListing.tsx @@ -249,7 +249,7 @@ const TeamListing: React.FC = ({

- FACULTY ALUMNI + Faculty Alumni

Honoring our retired faculty and staff members for their dedicated service