Skip to content

Update social preview img config#2111

Merged
alexandratran merged 1 commit into
mainfrom
fix-og-image
Jun 22, 2025
Merged

Update social preview img config#2111
alexandratran merged 1 commit into
mainfrom
fix-og-image

Conversation

@alexandratran

@alexandratran alexandratran commented Jun 20, 2025

Copy link
Copy Markdown
Contributor

Description

Open Graph social preview images currently work on some sites but not X.com. This PR updates the configuration to apply the social preview image universally. This can be tested by pasting the preview link into the X.com post composer.

Preview

https://metamask-docs-lsey5ewwj-consensys-ddffed67.vercel.app/delegation-toolkit/

Checklist

Complete this checklist before merging your PR:

  • If this PR contains a major change to the documentation content, I have added an entry to the top of the "What's new?" page.
  • The proposed changes have been reviewed and approved by a member of the documentation team.

@vercel

vercel Bot commented Jun 20, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
metamask-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2025 5:52pm

@alexandratran alexandratran marked this pull request as ready for review June 20, 2025 17:57
Copilot AI review requested due to automatic review settings June 20, 2025 17:57
@alexandratran alexandratran requested review from a team as code owners June 20, 2025 17:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the social preview image configuration in the Docusaurus config file.

  • Removed the legacy metadata entry for 'og:image'
  • Added a new 'image' property with the same image path
Comments suppressed due to low confidence (1)

docusaurus.config.js:223

  • Ensure that replacing the metadata entry for 'og:image' with the new 'image' property aligns with the updated Docusaurus configuration guidelines and that the social preview functionality works as expected.
      image: '/img/metamaskog.jpeg',

@bgravenorst bgravenorst left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@alexandratran alexandratran merged commit 2d293d2 into main Jun 22, 2025
18 checks passed
@alexandratran alexandratran deleted the fix-og-image branch June 22, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants