og
All checks were successful
Build & Deploy KLZ Cables / build-and-deploy (push) Successful in 3m57s

This commit is contained in:
2026-01-29 16:33:04 +01:00
parent 920efa0083
commit bb7d17001b
3 changed files with 59 additions and 7 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: 'Blog.meta' });
const title = t('title');
const description = t('description');
return new ImageResponse(
(
<OGImageTemplate
title={title}
description={description}
label="Blog"
/>
),
{
width: 1200,
height: 630,
}
);
}