fix: update metatags gen

This commit is contained in:
2025-12-11 15:12:20 +03:00
parent 765b65a00a
commit 3aa39d96ca
18 changed files with 319 additions and 82 deletions

View File

@@ -5,7 +5,8 @@ type TMetaInfo = {
description: string;
companyName: string;
phone: string;
url: string;
host: string;
path: string;
ogImageTitle: string;
ogImageDescription: string;
width?: number;
@@ -20,7 +21,8 @@ function metaInfo({ ...props }: TMetaInfo): Metadata {
description,
companyName,
phone,
url,
host,
path = '',
ogImageTitle,
ogImageDescription,
width = 600,
@@ -35,11 +37,10 @@ function metaInfo({ ...props }: TMetaInfo): Metadata {
openGraph: {
title: title,
description: description,
url: url,
url: `${host}${path}`,
images: [
{
url: `${url}/api/og/?title=${ogImageTitle}&description=${ogImageDescription}`,
secureUrl: `${url}/api/og/?title=${ogImageTitle}&description=${ogImageDescription}`,
url: `${host}/api/og/?title=${ogImageTitle}&description=${ogImageDescription}`,
width: width,
height: height,
alt: `${title} - ${companyName}`,
@@ -56,7 +57,7 @@ function metaInfo({ ...props }: TMetaInfo): Metadata {
creator: creator,
images: [
{
url: `${url}/api/og/?title=${ogImageTitle}&description=${ogImageDescription}`,
url: `${host}/api/og/?title=${ogImageTitle}&description=${ogImageDescription}`,
width: width,
height: height,
alt: `${title} - ${companyName}`,