og image
Some checks failed
Build & Deploy KLZ Cables / build-and-deploy (push) Failing after 13s

This commit is contained in:
2026-01-27 00:10:10 +01:00
parent a805c7b8de
commit 13ab4bde75
8 changed files with 359 additions and 165 deletions

View File

@@ -0,0 +1,25 @@
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: 'Contact' });
const title = t('meta.title') || t('title');
const description = t('meta.description') || t('subtitle');
return new ImageResponse(
(
<OGImageTemplate
title={title}
description={description}
label="Contact"
/>
),
{
width: 1200,
height: 630,
}
);
}