feat(seo): metadata API migration, canonicals, og images

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
nerandClaude Fable 5 committed 2026-08-07 17:02:20 +03:00
1 parent 8b56268430
commit 9b64f137f1
9 files changed
+71 -25

No files matched your search

+4 -2
View File
@@ -5,7 +5,7 @@ import { notFound } from 'next/navigation';
import Person from '@/components/Person';
import personQuery from '@/data/queries/person';
import { SITE_URL, TITLE } from '@/env';
import { TITLE } from '@/env';
import getQueryClient from '@/lib/queryClient';
interface Props {
@@ -23,12 +23,14 @@ export const generateMetadata = async ({ params: { id } }: Props): Promise<Metad
return {
title: `${name} | ${TITLE}`,
description,
alternates: { canonical: `/person/${id}` },
openGraph: {
title: name,
description,
siteName: TITLE,
images: photo ? [photo] : [],
type: 'profile',
url: `${SITE_URL}/person/${id}`
url: `/person/${id}`
}
};
} catch (_) {