fix: update metadata

This commit is contained in:
2025-12-11 15:50:13 +03:00
parent 3aa39d96ca
commit f75dfb458e
94 changed files with 639 additions and 87 deletions

View File

@@ -7,8 +7,7 @@ type TMetaInfo = {
phone: string;
host: string;
path: string;
ogImageTitle: string;
ogImageDescription: string;
ogImageUrl: string;
width?: number;
height?: number;
locale?: string;
@@ -23,8 +22,7 @@ function metaInfo({ ...props }: TMetaInfo): Metadata {
phone,
host,
path = '',
ogImageTitle,
ogImageDescription,
ogImageUrl,
width = 600,
height = 315,
locale = 'ru_RU',
@@ -40,7 +38,7 @@ function metaInfo({ ...props }: TMetaInfo): Metadata {
url: `${host}${path}`,
images: [
{
url: `${host}/api/og/?title=${ogImageTitle}&description=${ogImageDescription}`,
url: `${host}/${ogImageUrl}`,
width: width,
height: height,
alt: `${title} - ${companyName}`,
@@ -57,7 +55,7 @@ function metaInfo({ ...props }: TMetaInfo): Metadata {
creator: creator,
images: [
{
url: `${host}/api/og/?title=${ogImageTitle}&description=${ogImageDescription}`,
url: `${host}/${ogImageUrl}`,
width: width,
height: height,
alt: `${title} - ${companyName}`,

View File

@@ -3,6 +3,5 @@ export type TMetainfo = {
description: string;
companyName: string;
phone: string;
ogImageTitle: string;
ogImageDescription: string;
ogImageUrl: string;
};