Skip to content

Add Open Graph image retrieval for 0.3 hosts - #4

Merged
pjeweb merged 1 commit into
0.3.xfrom
feat/og-image-0.3
Nov 3, 2026
Merged

pjeweb merged 1 commit into
0.3.xfrom
feat/og-image-0.3

Conversation

@pjeweb

@pjeweb pjeweb commented Nov 3, 2026

Copy link
Copy Markdown
Member

Add SsrOgImageClient to the 0.3 host API so a host-owned public endpoint can retrieve the product module's Open Graph card from sidecar POST /v1/og. Missing cards and transport failures retain the static-image fallback.

The renderer and image client share request-body and token construction. The optional endpoint participates in the render cache key. Native cURL and stream transports reject redirects, invalid responses and oversized requests/images, bound response reads, and reject truncated images. Existing hosts need no configuration changes.

Validation: 48 tests / 184 assertions pass, including real HTTP tests for both native transports, body/token forwarding, endpoint/source/module separation, limits, failures and fallbacks. Changed PHP files pass syntax checks; the new maintenance API passed supplemental PHPStan checks. Includes usage documentation and a 0.3.2 changelog entry.

@pjeweb
pjeweb merged commit 7d73032 into 0.3.x Nov 3, 2026
4 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