Skip to content

metadata.metadataBase is not set for resolving social open graph or twitter images #57251

Answered by eMartin94
TommeZ asked this question in Help
Discussion options

You must be logged in to vote

Add metadataBase:

export const metadata = {
  metadataBase: new URL('http://localhost:3000'),
  title: 'Title webtsite',
  description: 'this is the desciption'
  openGraph: {
    title: 'Title webtsite',
    description: 'this is the desciption',
    image: 'url/image.png'
  },
  twitter: {
    card: 'summary_large_image',
    site: '@eMartiiin94',
    title: 'Title webtsite',
    description: 'this is the desciption',
    image: 'url/image.png'
  }
}

Replies: 4 comments 20 replies

Comment options

You must be logged in to vote
15 replies
@artginzburg
Comment options

@LudoLogical
Comment options

@artginzburg
Comment options

@LudoLogical
Comment options

@jsefiani
Comment options

Answer selected by TommeZ
Comment options

You must be logged in to vote
4 replies
@jpainam
Comment options

@SaiRev0
Comment options

@Aj7Ay
Comment options

@SaiRev0
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dvzrd
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet