From 5978c8d9034164f81d4f8af289a347fdd56b902e Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Fri, 26 Jun 2026 03:45:51 -0400 Subject: [PATCH] Fix opengraph image prerender so production builds succeed. Drop file fetches and embedded fonts that fail during static OG generation; use default ImageResponse typography instead. Co-authored-by: Cursor --- src/app/opengraph-image.tsx | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/app/opengraph-image.tsx b/src/app/opengraph-image.tsx index 3400211..f6b4603 100644 --- a/src/app/opengraph-image.tsx +++ b/src/app/opengraph-image.tsx @@ -9,20 +9,6 @@ export const contentType = "image/png"; export default async function Image() { const [logoPrefix, logoSuffix] = splitLogoText(brand.logoText); - const geistMono = await fetch( - new URL( - "../../public/fonts/geist/mono/GeistMono-VariableFont_wght.ttf", - import.meta.url, - ), - ).then((res) => res.arrayBuffer()); - - const playfair = await fetch( - new URL( - "../../node_modules/@fontsource-variable/playfair-display/files/playfair-display-latin-wght-normal.woff2", - import.meta.url, - ), - ).then((res) => res.arrayBuffer()); - return new ImageResponse( (