fix: update metadata
This commit is contained in:
@@ -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}`,
|
||||
|
||||
@@ -3,6 +3,5 @@ export type TMetainfo = {
|
||||
description: string;
|
||||
companyName: string;
|
||||
phone: string;
|
||||
ogImageTitle: string;
|
||||
ogImageDescription: string;
|
||||
ogImageUrl: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user