Move root pages back to edge
This commit is contained in:
parent
95267d0824
commit
6fcd4516b2
@ -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);
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user