Skip to content

fix(meta): make the social preview actually resolve - #11

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

fix(meta): make the social preview actually resolve#11
github-actions[bot] merged 1 commit into
mainfrom
fix/og-preview-url

Conversation

@catomean

@catomean catomean commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Every link to this site shares as a blank rectangle, even though the app does generate a real card.

metadataBase was hardcoded to https://printcraft.app, which does not serve this app — so the card was advertised as https://printcraft.app/opengraph-image and returned 404 (verified live).

Now reads NEXT_PUBLIC_SITE_URL with the actual serving host as fallback. Applied to both app/src/app/layout.tsx (the tree CI builds, per working-directory: app) and its byte-identical copy at src/app/layout.tsx, so the stale duplicate cannot re-introduce the dead domain.

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

metadataBase was hardcoded to https://printcraft.app, which does not serve
this app. The generated card was therefore advertised as
https://printcraft.app/opengraph-image and returned 404, so every shared link
rendered as a blank rectangle even though the site does generate a real image.

Now reads NEXT_PUBLIC_SITE_URL with the actual serving host as the fallback.

Applied to both app/src/app/layout.tsx (the tree CI builds) and the identical
copy at src/app/layout.tsx, so the stale duplicate cannot re-introduce the dead
domain for whoever reads it next.
@github-actions
github-actions Bot merged commit 14f63ea into main Aug 7, 2026
1 check passed
@github-actions
github-actions Bot deleted the fix/og-preview-url branch August 7, 2026 09:17
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