Files
klz-cables.com/app/[locale]/opengraph-image.tsx
Marc Mintel a2f94f15bc
All checks were successful
Build & Deploy KLZ Cables / build-and-deploy (push) Successful in 4m48s
og
2026-01-29 17:26:02 +01:00

24 lines
602 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: 'Index.meta' });
return new ImageResponse(
(
<OGImageTemplate
title={t('title')}
description={t('description')}
label="Reliable Energy Infrastructure"
/>
),
{
width: 1200,
height: 630,
}
);
}