Files
Jökull Sólberg Auðunsson 70ff9d5788 fix: handle single object for openGraph.images and twitter.images (#411)
* fix: handle single object for openGraph.images and twitter.images in metadata shim

Next.js allows `openGraph.images` and `twitter.images` to be a single
object (e.g. `{ url, width, height }`) in addition to a string or an
array. The metadata shim only handled string and array cases, causing
"imgList is not iterable" when a single object was passed.

Normalize single objects to arrays before iterating. Also update the
Metadata type to reflect the full range of accepted shapes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fmt

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: James <james@eli.cx>
2026-03-10 15:19:54 +00:00
..
2026-02-24 09:29:39 -06:00