Skip to content

Add share cards to website-next#9804

Merged
tobias-tengler merged 2 commits into
mainfrom
tte/share-cards-website-next
May 30, 2026
Merged

Add share cards to website-next#9804
tobias-tengler merged 2 commits into
mainfrom
tte/share-cards-website-next

Conversation

@tobias-tengler

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 30, 2026 15:47

Copilot AI 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.

Pull request overview

This PR adds Open Graph share-card generation for website-next, including default marketing cards and per-doc cards for static export.

Changes:

  • Adds shared OG card rendering, vendored Inter fonts, and mirrored color tokens for Satori.
  • Adds docs OG image routes and metadata wiring for docs/blog pages.
  • Updates nginx caching behavior for generated OG images.

Reviewed changes

Copilot reviewed 12 out of 14 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
website-next/src/theme/colors.ts Adds mirrored theme color constants for OG rendering.
website-next/src/og/ShareCard.tsx Adds the shared share-card React layout.
website-next/src/og/fonts/LICENSE.md Documents vendored Inter font licensing/source.
website-next/src/og/fonts.ts Adds font loading for ImageResponse.
website-next/src/helpers/siteUrl.ts Adds helper for absolute metadata URLs.
website-next/src/helpers/docsParams.ts Extracts docs slug enumeration/encoding helpers.
website-next/nginx/conf.d/default.conf Adds OG image caching, but removes existing security headers.
website-next/app/globals.css Notes color token mirroring for OG cards.
website-next/app/docs/[...slug]/page.tsx Adds docs OG/Twitter metadata and uses shared docs params helpers.
website-next/app/docs-og/[id]/opengraph-image.tsx Adds per-doc OG image generation route.
website-next/app/blog/[...slug]/page.tsx Adds blog OG/Twitter metadata using featured images.
website-next/app/(content)/opengraph-image.tsx Adds default marketing OG image generation route.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread website-next/nginx/conf.d/default.conf
Comment thread website-next/nginx/conf.d/default.conf
Comment thread website-next/nginx/conf.d/default.conf
Comment thread website-next/nginx/conf.d/default.conf
Comment thread website-next/nginx/conf.d/default.conf
@tobias-tengler tobias-tengler merged commit f4824a9 into main May 30, 2026
20 checks passed
@tobias-tengler tobias-tengler deleted the tte/share-cards-website-next branch May 30, 2026 15:52
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.

2 participants