Skip to content

feat(meta): give the site a real social preview - #61

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/og-preview
Aug 7, 2026
Merged

feat(meta): give the site a real social preview#61
github-actions[bot] merged 1 commit into
mainfrom
fix/og-preview

Conversation

@catomean

@catomean catomean commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Every link to this site currently shares as a blank grey rectangle — it ships no og:image at all.

Adds the Next file-convention card (opengraph-image.tsx, 1200x630 — the 1.91:1 size Slack, Telegram and the OpenGraph scrapers crop to), drawn in this site's own palette from globals.css.

Also sets metadataBase, which is the load-bearing half. Without it Next resolves the generated image to http://localhost:3000/opengraph-image: a tag that is present, looks configured, and is unfetchable by every scraper. The fallback is the real host, so a missing env var degrades to correct instead of to localhost.

Verified end-to-end on a sibling repo before porting: build, render, 200 image/png, 1200x630, and og:image emitted as the absolute production URL. Local tsc --noEmit clean; CI does the build.

Part of a fleet-wide sweep — 10 of 15 sites shared blank, found by FleetCrown Atlas.

Solon shipped no og:image, so every link to it rendered as a blank grey
rectangle in Telegram, Slack and any DM. Adds the Next file-convention card
(1200x630) using the site's own palette from globals.css.

Also sets metadataBase, which is load-bearing rather than cosmetic: without it
Next resolves the generated image to http://localhost:3000/opengraph-image —
a tag that is present, looks configured, and is unfetchable by every scraper.
The fallback is the real host, so a missing env var degrades to correct instead
of to localhost.

Verified by building and rendering: 200, image/png, 1200x630, and the homepage
emits og:image=https://solon.orangecat.ch/opengraph-image.
@github-actions
github-actions Bot merged commit 0bff0c4 into main Aug 7, 2026
1 check passed
@github-actions
github-actions Bot deleted the fix/og-preview branch August 7, 2026 08:58
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.

1 participant