mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-02 22:15:23 -04:00
Comment out og:image:width and og:image:height meta tags to align with updated image metadata usage.
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user