mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-04 05:57:39 +01:00
When German visitors share a /de/ page on social media, the preview
card now shows the German tagline ("Metabolische Psychiatrie &
Systemische Longevity") instead of English. Same for French and
Italian.
Extracted the shared OG render to lib/og/element.tsx (so both the root
English fallback and the new per-locale image render the same layout
with only the tagline string differing). The new app/[locale]/
opengraph-image.tsx generates on demand at the edge from the existing
meta.tagline translation key.
Verified via curl: each locale emits a distinct PNG (file sizes differ
by tagline length); /de page metadata correctly references
/de/opengraph-image; Next.js auto-emits hreflang link headers across
locales with x-default pointing to the root.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>