From 1957de483c8b1e8dc9353b61b27f78c3040e5673 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Wed, 20 Sep 2023 21:38:32 -0500 Subject: [PATCH] Adjust static param handling --- src/app/(static)/p/[photoId]/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, })); }