@mailoo/images 1.34.2 → 1.34.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -8
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -46,14 +46,14 @@ rewriteMailooBlogMediaUrls(post, {
46
46
  ```
47
47
 
48
48
  `ogImageUrl` from the blog API is the canonical Mailoo embed URL. It is not
49
- anonymous. Rewrite copies the **shape of the prefix**: a site-relative
50
- `proxyPrefixWithIdEquals` makes rewritten `ogImageUrl` (and image URLs in
51
- `htmlContent`) site-relative too. That path is the right `src` for `<img>`.
52
- `og:image`, `twitter:image`, and JSON-LD `image` / `logo` must be absolute
53
- URLs resolved against the **current request origin** (`X-Forwarded-Host` or
54
- `Host`, plus `X-Forwarded-Proto`). Do not bake a fixed `SITE_URL` into the
55
- prefix. Leave `htmlContent` image URLs relative. The API key needs
56
- `image.external-read`.
49
+ anonymous. Rewrite copies the prefix shape: a site-relative
50
+ `proxyPrefixWithIdEquals` makes rewritten `ogImageUrl` (and `htmlContent`
51
+ images) site-relative — that is the right `<img src>`. `og:image` /
52
+ JSON-LD must be absolute against the current request origin, with Facebook
53
+ `type` / `width` / `height`. `Allow` the proxy in `*` for Twitter/LinkedIn;
54
+ Facebook needs `User-agent: facebookexternalhit` / `Allow: /` and must not
55
+ see `Disallow: /api/` over the proxy (synthetic 403 even on HTTP 200).
56
+ The API key needs `image.external-read`.
57
57
 
58
58
  ## Library BFF (Bearer)
59
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailoo/images",
3
- "version": "1.34.2",
3
+ "version": "1.34.3",
4
4
  "description": "Mailoo image BFF helpers and public URL rewrite for Next.js",
5
5
  "license": "LicenseRef-Mailoo-NoModification",
6
6
  "homepage": "https://mailoo.app/en/support/docs/integrations/nextjs-packages",
@@ -38,7 +38,7 @@
38
38
  "next": ">=16.4.2"
39
39
  },
40
40
  "devDependencies": {
41
- "@mailoo/next-core": "1.34.2",
41
+ "@mailoo/next-core": "1.34.3",
42
42
  "@types/node": "^25.9.5",
43
43
  "next": "^16.4.2",
44
44
  "tsup": "^8.5.1",