Reintroduce static photo pages

This commit is contained in:
Sam Becker 2024-01-22 19:49:30 -06:00
parent f3996f6a65
commit bc4b959cd5

View File

@ -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 }