Remove edge runtimes
This commit is contained in:
parent
20590f6c29
commit
8f45c9efc8
@ -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 (
|
||||
<SiteGrid
|
||||
|
||||
@ -9,8 +9,6 @@ import PhotoLightbox from '@/photo/PhotoLightbox';
|
||||
|
||||
const MAX_PHOTO_TO_SHOW = 6;
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
interface Props {
|
||||
params: { tag: string }
|
||||
}
|
||||
|
||||
@ -12,8 +12,6 @@ import EditButton from '@/admin/EditButton';
|
||||
import { pathForAdminTagEdit } from '@/site/paths';
|
||||
import { cc } from '@/utility/css';
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
export default async function AdminTagsPage() {
|
||||
const tags = await getUniqueTagsHiddenCached();
|
||||
|
||||
|
||||
@ -4,8 +4,6 @@ import { isUploadPathnameValid } from '@/services/blob';
|
||||
import { handleUpload, type HandleUploadBody } from '@vercel/blob/client';
|
||||
import { NextResponse } from 'next/server';
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
export async function POST(request: Request): Promise<NextResponse> {
|
||||
const body = (await request.json()) as HandleUploadBody;
|
||||
|
||||
|
||||
@ -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 } },
|
||||
|
||||
@ -8,8 +8,6 @@ import {
|
||||
import { PaginationParams } from '@/site/pagination';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
interface FilmSimulationProps {
|
||||
params: { simulation: FilmSimulation }
|
||||
}
|
||||
|
||||
@ -9,8 +9,6 @@ import {
|
||||
import { PaginationParams } from '@/site/pagination';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
interface FilmSimulationProps {
|
||||
params: { simulation: FilmSimulation }
|
||||
}
|
||||
|
||||
@ -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<Metadata> {
|
||||
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG });
|
||||
return generateOgImageMetaForPhotos(photos);
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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 } },
|
||||
|
||||
@ -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 },
|
||||
}: {
|
||||
|
||||
@ -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<Metadata> {
|
||||
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG });
|
||||
return generateOgImageMetaForPhotos(photos);
|
||||
|
||||
@ -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<Metadata> {
|
||||
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG });
|
||||
return generateOgImageMetaForPhotos(photos);
|
||||
|
||||
@ -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 } },
|
||||
|
||||
@ -9,8 +9,6 @@ import {
|
||||
} from '@/camera/data';
|
||||
import CameraOverview from '@/camera/CameraOverview';
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
interface CameraProps {
|
||||
params: { camera: string },
|
||||
}
|
||||
|
||||
@ -10,8 +10,6 @@ import {
|
||||
} from '@/camera/data';
|
||||
import CameraOverview from '@/camera/CameraOverview';
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
interface CameraProps {
|
||||
params: { camera: string }
|
||||
}
|
||||
|
||||
@ -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 } },
|
||||
|
||||
@ -8,8 +8,6 @@ import {
|
||||
} from '@/tag/data';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
interface TagProps {
|
||||
params: { tag: string }
|
||||
}
|
||||
|
||||
@ -9,8 +9,6 @@ import {
|
||||
} from '@/tag/data';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
interface TagProps {
|
||||
params: { tag: string }
|
||||
}
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user