From c0f570c18cd550d2ffd633a9b7beba65b81d6395 Mon Sep 17 00:00:00 2001 From: d-ivashchuk Date: Thu, 4 Apr 2024 14:07:10 +0200 Subject: [PATCH] fix og image generation --- src/app/api/og/{page.tsx => route.tsx} | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) rename src/app/api/og/{page.tsx => route.tsx} (90%) diff --git a/src/app/api/og/page.tsx b/src/app/api/og/route.tsx similarity index 90% rename from src/app/api/og/page.tsx rename to src/app/api/og/route.tsx index fb4757e..6864c82 100644 --- a/src/app/api/og/page.tsx +++ b/src/app/api/og/route.tsx @@ -1,10 +1,8 @@ -/* eslint-disable jsx-a11y/alt-text */ -/* eslint-disable @next/next/no-img-element */ import { ImageResponse } from "next/og"; export const runtime = "edge"; -export default async function GET() { +export async function GET() { const imageData = await fetch(new URL("./cascade.png", import.meta.url)).then( (res) => res.arrayBuffer(), );