/**
 * Shared Payload CMS client for porwoll.de
 *
 * Configured for tenant "porwoll" (ID: 4).
 * Tenant isolation is handled automatically.
 */
import { createPayloadClient } from "@c2s/payload-contracts/api-client"

export const cms = createPayloadClient({
  baseUrl: process.env.NEXT_PUBLIC_PAYLOAD_URL || "https://cms.c2sgmbh.de",
  tenantId: process.env.NEXT_PUBLIC_TENANT_ID || "4",
  defaultLocale: "de",
  defaultDepth: 2,
  defaultRevalidate: 60,
})
