- Next.js 16 App Router site with the ANOUMA design system - Payload CMS (PostgreSQL) for offers, events, posts and page content - WebRTC video-call system with custom signaling server - SMTP email reminders and booking-request notifications - Customer accounts, calendar-based availability, and booking workflow
12 lines
369 B
TypeScript
12 lines
369 B
TypeScript
import { getPayload } from "payload";
|
|
import config from "@payload-config";
|
|
|
|
/**
|
|
* Thin wrapper around Payload's Local API client. `getPayload` already
|
|
* memoizes the instance internally (keyed by config), so this is safe to
|
|
* call from any Server Component without re-initializing on every request.
|
|
*/
|
|
export function getCMS() {
|
|
return getPayload({ config });
|
|
}
|