From 618602d802fc880c82e855c80d15c91d9503fba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20B=C3=BChler?= Date: Sat, 20 Jun 2026 16:51:00 +0200 Subject: [PATCH] feat(docs-site): read footer from the per-tenant CMS collection The shared unom CMS is now multi-tenant; the footer global became a per-tenant collection. Query footers scoped to tenant.slug = punktfunk instead of the removed /globals/footer. Co-Authored-By: Claude Opus 4.8 (1M context) --- docs-site/src/lib/cms.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/docs-site/src/lib/cms.ts b/docs-site/src/lib/cms.ts index 22ac944..ead922e 100644 --- a/docs-site/src/lib/cms.ts +++ b/docs-site/src/lib/cms.ts @@ -1,8 +1,12 @@ -// The docs reuse the punktfunk marketing site's footer — the same Payload CMS -// global on the shared unom CMS (cms.unom.io). It's a read-only GET, so a plain -// typed fetch rather than pulling in the Payload SDK + generated types. +// The docs reuse the punktfunk footer from the shared unom CMS (cms.unom.io). +// The CMS is multi-tenant: footer is a per-tenant collection, so scope the read +// to this project's tenant. Read-only GET, so a plain typed fetch rather than +// pulling in the Payload SDK + generated types. const CMS_URL = 'https://cms.unom.io' +// This project's tenant in the shared CMS. +const TENANT = 'punktfunk' + export interface NavigationLink { id?: string | null label?: string | null @@ -20,8 +24,10 @@ export interface Footer { sections?: NavigationSection[] | null } -export async function findFooter(): Promise