Move root pages back to edge

This commit is contained in:
Sam Becker 2023-12-02 13:51:49 -05:00
parent 95267d0824
commit 6fcd4516b2
2 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,8 @@ import {
import PhotoGridSidebar from '@/photo/PhotoGridSidebar'; import PhotoGridSidebar from '@/photo/PhotoGridSidebar';
import { SHOW_FILM_SIMULATIONS } from '@/site/config'; import { SHOW_FILM_SIMULATIONS } from '@/site/config';
export const runtime = 'edge';
export async function generateMetadata(): Promise<Metadata> { export async function generateMetadata(): Promise<Metadata> {
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG }); const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG });
return generateOgImageMetaForPhotos(photos); return generateOgImageMetaForPhotos(photos);

View File

@ -13,6 +13,8 @@ import { pathForRoot } from '@/site/paths';
import { Metadata } from 'next'; import { Metadata } from 'next';
import { MAX_PHOTOS_TO_SHOW_OG } from '@/photo/image-response'; import { MAX_PHOTOS_TO_SHOW_OG } from '@/photo/image-response';
export const runtime = 'edge';
export async function generateMetadata(): Promise<Metadata> { export async function generateMetadata(): Promise<Metadata> {
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG }); const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG });
return generateOgImageMetaForPhotos(photos); return generateOgImageMetaForPhotos(photos);