mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use webBaseURL to make twitter image url absolute
This commit is contained in:
parent
a409935da3
commit
6eb019cc76
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { DetailedHTMLProps, MetaHTMLAttributes } from 'react'
|
||||
import Head from 'next/head'
|
||||
import { useDarkModeListener } from '../../lib/hooks/useDarkModeListener'
|
||||
import { webBaseURL } from '../../lib/appConfig'
|
||||
|
||||
type MetaTag = DetailedHTMLProps<
|
||||
MetaHTMLAttributes<HTMLMetaElement>,
|
||||
|
|
@ -50,7 +51,7 @@ export function PageMetaData(props: PageMetaDataProps): JSX.Element {
|
|||
<meta property="og:image" content={props.ogImage} key="og-image" />
|
||||
<meta
|
||||
name="twitter:image"
|
||||
content={`https://omnivore-demo-7hm1ymole-omnivore.vercel.app${props.ogImage}`}
|
||||
content={`${webBaseURL}${props.ogImage}`}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue