Add share cards to website-next#9804
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.
This was referenced Jun 1, 2026
This was referenced Jun 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.