Files
supabase/apps/www/components
Danny WhiteandAlan Daniel 48b96e8a79 fix(www): use imgSocial for blog OG images (#43842)
## What kind of change does this PR introduce?

- Bug fix that resolves DEPR-396
- Additional improvements to blog post image handling

## What is the current behavior?

Blog post Open Graph metadata often prefers `imgThumb` over `imgSocial`,
so social previews on X, iMessage, and similar surfaces can render the
on-site thumbnail instead of the intended social image.

The image selection and path-normalization rules are also duplicated
across blog surfaces, which makes the precedence rules easy to drift.

## What is the new behavior?

- Centralizes blog image handling in `apps/www/lib/blog-images.ts`
- Uses `imgSocial` first, then `imgThumb`, for blog OG/Twitter metadata
- Uses `imgThumb` first, then `imgSocial`, then the placeholder, for
blog thumbnails and post hero images
- Normalizes relative blog image paths into absolute URLs for metadata
- Adds warning-only validation during content reads/builds for partial
or malformed `imgSocial` / `imgThumb` config
- Updates a few recent blog posts so `imgThumb` is a thumbnail-only
asset instead of duplicating the social image

## Additional context

- Replaces #42319 with the additional above fixes
- Added unit coverage for the shared image helper

---------

Co-authored-by: Alan Daniel <stylesshjs@gmail.com>
2026-03-19 02:45:11 +00:00
..
2024-12-02 22:17:51 +10:00
2025-09-03 14:49:28 +02:00
2024-10-07 09:47:32 +02:00
2024-08-07 14:05:56 -04:00
2022-06-28 11:10:41 -04:00
2026-01-07 14:48:23 -03:30
2026-02-23 15:47:03 +00:00
2025-09-03 14:49:28 +02:00
2024-12-05 15:05:47 +00:00
2024-12-04 10:51:57 -04:00
2025-04-02 11:00:27 +10:00
2024-09-17 11:07:38 +02:00
2025-12-17 15:32:31 +00:00
2025-09-03 14:49:28 +02:00
2023-11-07 03:40:53 +00:00
2024-04-10 11:51:26 +02:00
2025-09-03 14:49:28 +02:00
2025-09-03 14:49:28 +02:00
2025-08-28 10:44:49 +02:00
2024-04-19 16:24:21 +02:00
2025-09-03 14:49:28 +02:00