diff --git a/src/app/(auth-state)/admin/configuration/page.tsx b/src/app/(auth-state)/admin/configuration/page.tsx index aae1e69c..236ee07d 100644 --- a/src/app/(auth-state)/admin/configuration/page.tsx +++ b/src/app/(auth-state)/admin/configuration/page.tsx @@ -5,8 +5,6 @@ import { syncCacheAction } from '@/photo/actions'; import SiteChecklist from '@/site/SiteChecklist'; import { BiTrash } from 'react-icons/bi'; -export const runtime = 'edge'; - export default async function AdminConfigurationPage() { return ( { const body = (await request.json()) as HandleUploadBody; diff --git a/src/app/(static)/film/[simulation]/image/route.tsx b/src/app/(static)/film/[simulation]/image/route.tsx index fafe45ad..538e59c3 100644 --- a/src/app/(static)/film/[simulation]/image/route.tsx +++ b/src/app/(static)/film/[simulation]/image/route.tsx @@ -10,8 +10,6 @@ import { FilmSimulation } from '@/simulation'; import { getIBMPlexMonoMedium } from '@/site/font'; import { ImageResponse } from 'next/og'; -export const runtime = 'edge'; - export async function GET( _: Request, context: { params: { simulation: FilmSimulation } }, diff --git a/src/app/(static)/film/[simulation]/page.tsx b/src/app/(static)/film/[simulation]/page.tsx index c80bbade..df7b5f4b 100644 --- a/src/app/(static)/film/[simulation]/page.tsx +++ b/src/app/(static)/film/[simulation]/page.tsx @@ -8,8 +8,6 @@ import { import { PaginationParams } from '@/site/pagination'; import { Metadata } from 'next'; -export const runtime = 'edge'; - interface FilmSimulationProps { params: { simulation: FilmSimulation } } diff --git a/src/app/(static)/film/[simulation]/share/page.tsx b/src/app/(static)/film/[simulation]/share/page.tsx index b26320c3..ca1b82f0 100644 --- a/src/app/(static)/film/[simulation]/share/page.tsx +++ b/src/app/(static)/film/[simulation]/share/page.tsx @@ -9,8 +9,6 @@ import { import { PaginationParams } from '@/site/pagination'; import { Metadata } from 'next'; -export const runtime = 'edge'; - interface FilmSimulationProps { params: { simulation: FilmSimulation } } diff --git a/src/app/(static)/grid/page.tsx b/src/app/(static)/grid/page.tsx index e400c6ba..b2e9b78e 100644 --- a/src/app/(static)/grid/page.tsx +++ b/src/app/(static)/grid/page.tsx @@ -19,8 +19,6 @@ 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)/home-image/route.tsx b/src/app/(static)/home-image/route.tsx index 28a29351..b66b8759 100644 --- a/src/app/(static)/home-image/route.tsx +++ b/src/app/(static)/home-image/route.tsx @@ -8,8 +8,6 @@ import HomeImageResponse from '@/photo/image-response/HomeImageResponse'; import { getIBMPlexMonoMedium } from '@/site/font'; import { ImageResponse } from 'next/og'; -export const runtime = 'edge'; - export async function GET() { const [ photos, diff --git a/src/app/(static)/og/page.tsx b/src/app/(static)/og/page.tsx index 11ad9f75..a9f9e2b8 100644 --- a/src/app/(static)/og/page.tsx +++ b/src/app/(static)/og/page.tsx @@ -7,8 +7,6 @@ import { } from '@/site/pagination'; import { pathForOg } from '@/site/paths'; -export const runtime = 'edge'; - export default async function GridPage({ searchParams }: PaginationParams) { const { offset, limit } = getPaginationForSearchParams(searchParams); diff --git a/src/app/(static)/p/[photoId]/image/route.tsx b/src/app/(static)/p/[photoId]/image/route.tsx index ae887b7e..17cc6c29 100644 --- a/src/app/(static)/p/[photoId]/image/route.tsx +++ b/src/app/(static)/p/[photoId]/image/route.tsx @@ -5,8 +5,6 @@ import PhotoImageResponse from '@/photo/image-response/PhotoImageResponse'; import { getIBMPlexMonoMedium } from '@/site/font'; import { ImageResponse } from 'next/og'; -export const runtime = 'edge'; - export async function GET( _: Request, context: { params: { photoId: string } }, diff --git a/src/app/(static)/p/[photoId]/share/page.tsx b/src/app/(static)/p/[photoId]/share/page.tsx index 0ffe0e2d..fff8c1ba 100644 --- a/src/app/(static)/p/[photoId]/share/page.tsx +++ b/src/app/(static)/p/[photoId]/share/page.tsx @@ -3,8 +3,6 @@ import PhotoShareModal from '@/photo/PhotoShareModal'; import { PATH_ROOT } from '@/site/paths'; import { redirect } from 'next/navigation'; -export const runtime = 'edge'; - export default async function Share({ params: { photoId }, }: { diff --git a/src/app/(static)/page.tsx b/src/app/(static)/page.tsx index 78fbea0b..39d1c4f8 100644 --- a/src/app/(static)/page.tsx +++ b/src/app/(static)/page.tsx @@ -13,8 +13,6 @@ 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); diff --git a/src/app/(static)/sets/page.tsx b/src/app/(static)/sets/page.tsx index 7a848ee0..9427e65d 100644 --- a/src/app/(static)/sets/page.tsx +++ b/src/app/(static)/sets/page.tsx @@ -15,8 +15,6 @@ import { SHOW_FILM_SIMULATIONS } from '@/site/config'; import { PATH_GRID } from '@/site/paths'; import { Metadata } from 'next'; -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)/shot-on/[camera]/image/route.tsx b/src/app/(static)/shot-on/[camera]/image/route.tsx index a453f2a4..78fdd64d 100644 --- a/src/app/(static)/shot-on/[camera]/image/route.tsx +++ b/src/app/(static)/shot-on/[camera]/image/route.tsx @@ -9,8 +9,6 @@ import CameraImageResponse from '@/photo/image-response/CameraImageResponse'; import { getIBMPlexMonoMedium } from '@/site/font'; import { ImageResponse } from 'next/og'; -export const runtime = 'edge'; - export async function GET( _: Request, context: { params: { camera: string } }, diff --git a/src/app/(static)/shot-on/[camera]/page.tsx b/src/app/(static)/shot-on/[camera]/page.tsx index ca213df1..c726f350 100644 --- a/src/app/(static)/shot-on/[camera]/page.tsx +++ b/src/app/(static)/shot-on/[camera]/page.tsx @@ -9,8 +9,6 @@ import { } from '@/camera/data'; import CameraOverview from '@/camera/CameraOverview'; -export const runtime = 'edge'; - interface CameraProps { params: { camera: string }, } diff --git a/src/app/(static)/shot-on/[camera]/share/page.tsx b/src/app/(static)/shot-on/[camera]/share/page.tsx index 1c8b51f2..cc684ea7 100644 --- a/src/app/(static)/shot-on/[camera]/share/page.tsx +++ b/src/app/(static)/shot-on/[camera]/share/page.tsx @@ -10,8 +10,6 @@ import { } from '@/camera/data'; import CameraOverview from '@/camera/CameraOverview'; -export const runtime = 'edge'; - interface CameraProps { params: { camera: string } } diff --git a/src/app/(static)/tag/[tag]/image/route.tsx b/src/app/(static)/tag/[tag]/image/route.tsx index 76c76d5d..5a55db79 100644 --- a/src/app/(static)/tag/[tag]/image/route.tsx +++ b/src/app/(static)/tag/[tag]/image/route.tsx @@ -8,8 +8,6 @@ import TagImageResponse from '@/photo/image-response/TagImageResponse'; import { getIBMPlexMonoMedium } from '@/site/font'; import { ImageResponse } from 'next/og'; -export const runtime = 'edge'; - export async function GET( _: Request, context: { params: { tag: string } }, diff --git a/src/app/(static)/tag/[tag]/page.tsx b/src/app/(static)/tag/[tag]/page.tsx index 30e1193b..72f74459 100644 --- a/src/app/(static)/tag/[tag]/page.tsx +++ b/src/app/(static)/tag/[tag]/page.tsx @@ -8,8 +8,6 @@ import { } from '@/tag/data'; import { Metadata } from 'next'; -export const runtime = 'edge'; - interface TagProps { params: { tag: string } } diff --git a/src/app/(static)/tag/[tag]/share/page.tsx b/src/app/(static)/tag/[tag]/share/page.tsx index ace9bc48..a7f3caba 100644 --- a/src/app/(static)/tag/[tag]/share/page.tsx +++ b/src/app/(static)/tag/[tag]/share/page.tsx @@ -9,8 +9,6 @@ import { } from '@/tag/data'; import { Metadata } from 'next'; -export const runtime = 'edge'; - interface TagProps { params: { tag: string } } diff --git a/src/app/(static)/template-image-tight/route.tsx b/src/app/(static)/template-image-tight/route.tsx index 3808d205..10434ab9 100644 --- a/src/app/(static)/template-image-tight/route.tsx +++ b/src/app/(static)/template-image-tight/route.tsx @@ -9,8 +9,6 @@ import TemplateImageResponse from import { getIBMPlexMonoMedium } from '@/site/font'; import { ImageResponse } from 'next/og'; -export const runtime = 'edge'; - export async function GET() { const [ photos, diff --git a/src/app/(static)/template-image/route.tsx b/src/app/(static)/template-image/route.tsx index a852fc7e..b07df965 100644 --- a/src/app/(static)/template-image/route.tsx +++ b/src/app/(static)/template-image/route.tsx @@ -9,8 +9,6 @@ import TemplateImageResponse from import { getIBMPlexMonoMedium } from '@/site/font'; import { ImageResponse } from 'next/og'; -export const runtime = 'edge'; - export async function GET() { const [ photos, diff --git a/src/app/sign-in/page.tsx b/src/app/sign-in/page.tsx index c193da1f..61d6dd11 100644 --- a/src/app/sign-in/page.tsx +++ b/src/app/sign-in/page.tsx @@ -4,8 +4,6 @@ import { PATH_ADMIN } from '@/site/paths'; import { cc } from '@/utility/css'; import { redirect } from 'next/navigation'; -export const runtime = 'edge'; - export default async function SignInPage() { const session = await auth();