Skip to content

Support Open Graph images in the next host API - #5

Merged
pjeweb merged 1 commit into
mainfrom
feat/og-image-client
Nov 3, 2026
Merged

pjeweb merged 1 commit into
mainfrom
feat/og-image-client

Conversation

@pjeweb

@pjeweb pjeweb commented Nov 3, 2026

Copy link
Copy Markdown
Member

Add SsrClient::ogImage(EmbedRequest) for host-owned Open Graph endpoints. It posts the placement's normalized render payload and tokens to sidecar POST /v1/og, validates the returned image and falls back when no card is available or the request fails.

The optional endpoint reaches the product module and participates in the render cache key. Body/header construction is shared with ordinary rendering, retaining existing render limits, response validation and error classification.

Validation: 64 tests / 229 assertions, full-source PHPStan at max level, Composer validation and changed-file PHP syntax checks pass. Tests cover binary results, failures/fallbacks, request limits and tokens, endpoint cache identity, and source/module separation. Includes documentation and the next API's changelog entry.

@pjeweb
pjeweb merged commit 784f0b8 into main Nov 3, 2026
5 checks passed
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