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