From 6fcd4516b241fa5c8212ff7ac2b611f2226dc993 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sat, 2 Dec 2023 13:51:49 -0500 Subject: [PATCH] Move root pages back to edge --- src/app/(static)/grid/page.tsx | 2 ++ src/app/(static)/page.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/app/(static)/grid/page.tsx b/src/app/(static)/grid/page.tsx index b2e9b78e..e400c6ba 100644 --- a/src/app/(static)/grid/page.tsx +++ b/src/app/(static)/grid/page.tsx @@ -19,6 +19,8 @@ import { import PhotoGridSidebar from '@/photo/PhotoGridSidebar'; import { SHOW_FILM_SIMULATIONS } from '@/site/config'; +export const runtime = 'edge'; + export async function generateMetadata(): Promise { const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG }); return generateOgImageMetaForPhotos(photos); diff --git a/src/app/(static)/page.tsx b/src/app/(static)/page.tsx index 39d1c4f8..78fbea0b 100644 --- a/src/app/(static)/page.tsx +++ b/src/app/(static)/page.tsx @@ -13,6 +13,8 @@ import { pathForRoot } from '@/site/paths'; import { Metadata } from 'next'; import { MAX_PHOTOS_TO_SHOW_OG } from '@/photo/image-response'; +export const runtime = 'edge'; + export async function generateMetadata(): Promise { const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG }); return generateOgImageMetaForPhotos(photos);