past image resolved
This commit is contained in:
@ -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({
|
||||
|
||||
@ -249,7 +249,7 @@ const TeamListing: React.FC<TeamListingProps> = ({
|
||||
<div className="max-w-7xl mx-auto px-4">
|
||||
<div className="mb-8">
|
||||
<h2 className="text-2xl font-bold mb-4" style={{ color: '#012068' }}>
|
||||
FACULTY ALUMNI
|
||||
Faculty Alumni
|
||||
</h2>
|
||||
<p className="text-sm mb-2" style={{ color: '#666' }}>
|
||||
Honoring our retired faculty and staff members for their dedicated service
|
||||
|
||||
Reference in New Issue
Block a user