Reintroduce static photo pages
This commit is contained in:
parent
f3996f6a65
commit
bc4b959cd5
@ -11,7 +11,16 @@ import {
|
||||
absolutePathForPhotoImage,
|
||||
} from '@/site/paths';
|
||||
import PhotoDetailPage from '@/photo/PhotoDetailPage';
|
||||
import { getPhotoCached, getPhotosNearIdCached } from '@/cache';
|
||||
import {
|
||||
getPhotoCached,
|
||||
getPhotosNearIdCached,
|
||||
} from '@/cache';
|
||||
import { getPhotoIds } from '@/services/vercel-postgres';
|
||||
|
||||
export async function generateStaticParams() {
|
||||
const photos = await getPhotoIds({ limit: 10 });
|
||||
return photos.map(id => ({ photoId: id }));
|
||||
}
|
||||
|
||||
interface PhotoProps {
|
||||
params: { photoId: string }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user