Adjust static param handling

This commit is contained in:
Sam Becker 2023-09-20 21:38:32 -05:00
parent 62f5a1ec7f
commit 1957de483c

View File

@ -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 },
}));
}