Comment out og:image:width and og:image:height meta tags to align with updated image metadata usage.

This commit is contained in:
MartinBraquet
2026-04-01 18:09:25 +02:00
parent a3dfcb4080
commit 781b5ec674
2 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,4 @@
import {IS_PROD} from 'common/envs/constants'
import {PNG_FAVICON} from 'common/hosting/constants'
import {removeUndefinedProps} from 'common/util/object'
import {buildOgUrl} from 'common/util/og'
import Head from 'next/head'
@@ -14,9 +13,7 @@ export function SEO<P extends Record<string, string | undefined>>(props: {
const {title, description, url, image, ogProps} = props
const imageUrl =
image ??
(ogProps && buildOgUrl(removeUndefinedProps(ogProps.props) as any, ogProps.endpoint)) ??
PNG_FAVICON
image ?? (ogProps && buildOgUrl(removeUndefinedProps(ogProps.props) as any, ogProps.endpoint))
const absUrl = 'https://compassmeet.com' + url
const endTitle = IS_PROD ? 'Compass' : 'Compass dev'

View File

@@ -181,6 +181,8 @@ function MyApp(props: AppProps<PageProps>) {
{/*<meta name="twitter:site" content="@compassmeet"/>*/}
<meta name="twitter:image" content={PNG_FAVICON} key="image2" />
<meta property="og:image" content={PNG_FAVICON} key="image1" />
{/*<meta property="og:image:width" content="192" />*/}
{/*<meta property="og:image:height" content="192" />*/}
<meta property="og:image:type" content="image/png" />
<meta
name="viewport"