Warm og images for individual photos

This commit is contained in:
Sam Becker 2023-12-28 15:42:30 -05:00
parent d526ef97a4
commit c5c8f52c91

View File

@ -64,6 +64,9 @@ export default async function PhotoPage({
const isPhotoFirst = photos.findIndex(p => p.id === photoId) === 0;
// Warm OG image without waiting on response
fetch(absolutePathForPhotoImage(photo));
return <>
{children}
<PhotoDetailPage