Files
mintel.me/apps/web/app/(site)/opengraph-image.tsx
Marc Mintel 95a8b702fe
Some checks failed
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🏗️ Build (push) Failing after 8m32s
Build & Deploy / 🔍 Prepare (push) Successful in 18s
Build & Deploy / 🧪 QA (push) Failing after 1m33s
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 1s
fix(web): correct relative imports in opengraph-image routes
2026-02-23 01:14:16 +01:00

24 lines
641 B
TypeScript

import { ImageResponse } from "next/og";
import { OGImageTemplate } from "../../src/components/OGImageTemplate";
import { getOgFonts, OG_IMAGE_SIZE } from "../../src/lib/og-helper";
export const size = OG_IMAGE_SIZE;
export const contentType = "image/png";
export const runtime = "nodejs";
export default async function Image() {
const fonts = await getOgFonts();
return new ImageResponse(
<OGImageTemplate
title="Marc Mintel"
description="Technical problem solver's blog - practical insights and learning notes"
label="Engineering"
/>,
{
...OG_IMAGE_SIZE,
fonts: fonts as any,
},
);
}