Remove edge runtimes

This commit is contained in:
Sam Becker 2023-11-18 14:29:50 -06:00
parent 20590f6c29
commit 8f45c9efc8
23 changed files with 0 additions and 46 deletions

View File

@ -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

View File

@ -9,8 +9,6 @@ import PhotoLightbox from '@/photo/PhotoLightbox';
const MAX_PHOTO_TO_SHOW = 6;
export const runtime = 'edge';
interface Props {
params: { tag: string }
}

View File

@ -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();

View File

@ -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;

View File

@ -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 } },

View File

@ -8,8 +8,6 @@ import {
import { PaginationParams } from '@/site/pagination';
import { Metadata } from 'next';
export const runtime = 'edge';
interface FilmSimulationProps {
params: { simulation: FilmSimulation }
}

View File

@ -9,8 +9,6 @@ import {
import { PaginationParams } from '@/site/pagination';
import { Metadata } from 'next';
export const runtime = 'edge';
interface FilmSimulationProps {
params: { simulation: FilmSimulation }
}

View File

@ -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);

View File

@ -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,

View File

@ -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);

View File

@ -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 } },

View File

@ -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 },
}: {

View File

@ -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);

View File

@ -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);

View File

@ -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 } },

View File

@ -9,8 +9,6 @@ import {
} from '@/camera/data';
import CameraOverview from '@/camera/CameraOverview';
export const runtime = 'edge';
interface CameraProps {
params: { camera: string },
}

View File

@ -10,8 +10,6 @@ import {
} from '@/camera/data';
import CameraOverview from '@/camera/CameraOverview';
export const runtime = 'edge';
interface CameraProps {
params: { camera: string }
}

View File

@ -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 } },

View File

@ -8,8 +8,6 @@ import {
} from '@/tag/data';
import { Metadata } from 'next';
export const runtime = 'edge';
interface TagProps {
params: { tag: string }
}

View File

@ -9,8 +9,6 @@ import {
} from '@/tag/data';
import { Metadata } from 'next';
export const runtime = 'edge';
interface TagProps {
params: { tag: string }
}

View File

@ -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,

View File

@ -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,

View File

@ -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();