garmeeh / next-seo

Next SEO is a plug in that makes managing your SEO easier in Next.js projects.
MIT License
7.53k stars 389 forks source link

Support for og:title by default #973

Closed indicozy closed 2 years ago

indicozy commented 2 years ago

Is your feature request related to a problem? Please describe. The problem is that I could not find whether the use of og:image is implemented as a default option or not so have to use it as additional meta tag:

additionalMetaTags={[
{
  property: 'og:image', 
  content: `${process.env.NEXTAUTH_URL}/static/images/twitter-card.png`,
  },
]}

Describe the solution you'd like Add og:image to default options for next-seo:

<DefaultSeo
  openGraph={{
  type: 'website',
  image: 'link-to-image' }}
/>

Describe alternatives you've considered I'm already using an alternative

Additional context None

garmeeh commented 2 years ago

So would something like baseUrl work?

<DefaultSeo
  baseUrl="https://www.mywebsite.com"
/>

Docs: baseUrl should be your top level domain. This will be used for fields that require a full URL such as og:image

indicozy commented 2 years ago

Gotcha, I just missed the point. Closing the issue