diff --git a/docs/app/api/og-release/route.tsx b/docs/app/api/og-release/route.tsx deleted file mode 100644 index 4d76eb8070..0000000000 --- a/docs/app/api/og-release/route.tsx +++ /dev/null @@ -1,171 +0,0 @@ -import { ImageResponse } from "@vercel/og"; -import * as z from "zod"; -export const runtime = "edge"; - -const ogSchema = z.object({ - heading: z.string(), - description: z.string().optional(), - date: z.string().optional(), -}); - -export async function GET(req: Request) { - try { - const geist = await fetch( - new URL("../../../assets/Geist.ttf", import.meta.url), - ).then((res) => res.arrayBuffer()); - - const url = new URL(req.url); - const urlParamsValues = Object.fromEntries(url.searchParams); - const validParams = ogSchema.parse(urlParamsValues); - - const { heading, description, date } = validParams; - const trueHeading = - heading.length > 140 ? `${heading.substring(0, 140)}...` : heading; - - return new ImageResponse( -
-
-
- -
-