diff --git a/src/app/(static)/p/[photoId]/layout.tsx b/src/app/(static)/p/[photoId]/layout.tsx index 2c882e1e..fb8c6320 100644 --- a/src/app/(static)/p/[photoId]/layout.tsx +++ b/src/app/(static)/p/[photoId]/layout.tsx @@ -13,7 +13,7 @@ import { getPhotos } from '@/services/postgres'; export async function generateStaticParams() { const photos = await getPhotos(); return photos.map(photo => ({ - slug: photo.id, + params: { photoId: photo.id }, })); }