Skip to content

Commit a3dfcb4

Browse files
committed
Fix
1 parent 0fe1ffe commit a3dfcb4

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

common/src/hosting/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@ if (IS_LOCAL && !process.env.ENVIRONMENT && !process.env.NEXT_PUBLIC_FIREBASE_EN
2424
export const SENTRY_DSN =
2525
'https://4e5d3b0aa566e8aaae97298398a1ad37@o4510975610060800.ingest.de.sentry.io/4510975611699280'
2626

27+
export const PNG_FAVICON = 'https://www.compassmeet.com/icons/icon-192x192.png'
28+
2729
// console.log('IS_LOCAL_ANDROID', IS_LOCAL_ANDROID)

web/components/SEO.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {IS_PROD} from 'common/envs/constants'
2+
import {PNG_FAVICON} from 'common/hosting/constants'
23
import {removeUndefinedProps} from 'common/util/object'
34
import {buildOgUrl} from 'common/util/og'
45
import Head from 'next/head'
@@ -13,7 +14,9 @@ export function SEO<P extends Record<string, string | undefined>>(props: {
1314
const {title, description, url, image, ogProps} = props
1415

1516
const imageUrl =
16-
image ?? (ogProps && buildOgUrl(removeUndefinedProps(ogProps.props) as any, ogProps.endpoint))
17+
image ??
18+
(ogProps && buildOgUrl(removeUndefinedProps(ogProps.props) as any, ogProps.endpoint)) ??
19+
PNG_FAVICON
1720

1821
const absUrl = 'https://compassmeet.com' + url
1922
const endTitle = IS_PROD ? 'Compass' : 'Compass dev'

web/pages/_app.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {Keyboard} from '@capacitor/keyboard'
77
import {StatusBar} from '@capacitor/status-bar'
88
import clsx from 'clsx'
99
import {DEPLOYED_WEB_URL} from 'common/envs/constants'
10-
import {IS_VERCEL} from 'common/hosting/constants'
10+
import {IS_VERCEL, PNG_FAVICON} from 'common/hosting/constants'
1111
import {debug} from 'common/logger'
1212
import type {AppProps} from 'next/app'
1313
import {Major_Mono_Display} from 'next/font/google'
@@ -179,8 +179,8 @@ function MyApp(props: AppProps<PageProps>) {
179179
<meta property="og:site_name" content="Compass" />
180180
<meta name="twitter:card" content="summary" key="card" />
181181
{/*<meta name="twitter:site" content="@compassmeet"/>*/}
182-
<meta name="twitter:image" content={'/icons/icon-192x192.png'} key="image2" />
183-
<meta property="og:image" content={'/icons/icon-192x192.png'} key="image1" />
182+
<meta name="twitter:image" content={PNG_FAVICON} key="image2" />
183+
<meta property="og:image" content={PNG_FAVICON} key="image1" />
184184
<meta property="og:image:type" content="image/png" />
185185
<meta
186186
name="viewport"

0 commit comments

Comments
 (0)