File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { getPageTitle } from 'notion-utils'
77import { NotionRenderer } from 'react-notion-x'
88import { 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' />
You can’t perform that action at this time.
0 commit comments