Adjust static param handling
This commit is contained in:
parent
62f5a1ec7f
commit
1957de483c
@ -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 },
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user