Files
klz-cables.com/app/[locale]/blog/opengraph-image.tsx
Marc Mintel 33ed13d255
Some checks failed
Build & Deploy KLZ Cables / build-and-deploy (push) Failing after 3m28s
og
2026-01-31 10:25:25 +01:00

26 lines
633 B
TypeScript

import { ImageResponse } from 'next/og';
import { getTranslations } from 'next-intl/server';
import { OGImageTemplate } from '@/components/OGImageTemplate';
export const runtime = 'nodejs';
export default async function Image({ params: { locale } }: { params: { locale: string } }) {
const t = await getTranslations({ locale, namespace: 'Blog.meta' });
const title = t('title');
const description = t('description');
return new ImageResponse(
(
<OGImageTemplate
title={title}
description={description}
label="Blog"
/>
),
{
width: 1200,
height: 630,
}
);
}