Files
klz-cables.com/app/[locale]/team/opengraph-image.tsx
Marc Mintel 8a80eb7b9a
All checks were successful
Build & Deploy KLZ Cables / build-and-deploy (push) Successful in 3m55s
og
2026-01-31 10:35:07 +01:00

26 lines
683 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: 'Team' });
const title = t('meta.title') || t('hero.subtitle');
const description = t('meta.description') || t('hero.title');
return new ImageResponse(
(
<OGImageTemplate
title={title}
description={description}
label="Our Team"
/>
),
{
width: 1200,
height: 630,
}
);
}