Skip to content

chore: remove or rework nuxt-og-image (defineOgImage is a no-op in production) #354

Description

@TheMeinerLP

nuxt-og-image runs with zeroRuntime: true, which rewrites defineOgImage() to import.meta.prerender && defineOgImage(). Nothing is prerendered, so every call is a no-op in production.

Since #350, og:image comes from usePageSeo and useArticleSeo: the page's own image, or public/images/og-default.png. The remaining defineOgImage('NuxtSeo') and defineOgImage('TeamMember') calls, plus the NuxtSeo type error in the quality baseline, can go with the module. Alternatively, prerender only the OG image routes, if generated cards are wanted, e.g. for team profiles, whose avatar is only 256×256.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions