Skip to content

Commit 778dfda

Browse files
🎑
1 parent ccac07b commit 778dfda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/full/components/NotionPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { getPageTitle } from 'notion-utils'
77
import { NotionRenderer } from 'react-notion-x'
88
import { ExtendedRecordMap } from 'notion-types'
99

10-
const socialImage = '/social.jpg'
10+
import socialImage from '../public/social.jpg'
1111

1212
// -----------------------------------------------------------------------------
1313
// dynamic imports for optional components
@@ -74,8 +74,8 @@ export const NotionPage = ({
7474
{socialImage ? (
7575
<>
7676
<meta name='twitter:card' content='summary_large_image' />
77-
<meta name='twitter:image' content={socialImage} />
78-
<meta property='og:image' content={socialImage} />
77+
<meta name='twitter:image' content={socialImage.src} />
78+
<meta property='og:image' content={socialImage.src} />
7979
</>
8080
) : (
8181
<meta name='twitter:card' content='summary' />

0 commit comments

Comments
 (0)