Load site meta tags and trust badges from Meshkee business info.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-10-03 18:23:38 +03:30
co-authored by Cursor
parent cd88e0ce46
commit b4d6b30243
6 changed files with 74 additions and 28 deletions
+7
View File
@@ -61,6 +61,13 @@ Homepage images: `GET /tenants/{domain}/website/static-images?pageKey=home`. Cat
`url` → img, `linkUrl` → wrap in a link, empty/fail → placeholder. Use `slot.aspectRatio`. If a slot’s size/ratio changes in CSS, update `STATIC_IMAGE_SLOTS` in `lib/static-images.ts` in the same change.
## Tags & badges
`GET /tenants/{domain}/website/business-info`
- `metaTags`: `[{ name, content }]` emitted once from root `generateMetadata` as `other`. Empty → omit.
- `trustBadges`: `[{ kind: "enamad" | "samandehi", embedHtml }]` rendered in the footer with `dangerouslySetInnerHTML`. Empty → omit. Do not hardcode eNamad or Samandehi placeholders.
## Local fallbacks
- Slider: `src/assets/images/slides`, else `/placeholders/slider-*.svg`