Overview & Quick Start
Payload CMS Readiness Probe
@nexload-sdk/healthcheck-payload
v2.1.0 Stable ReleasedPayload CMS health checks for @nexload-sdk/healthcheck.
Payload CMSNode.js
@nexload-sdk/healthcheck-payload connects @nexload-sdk/healthcheck to Payload CMS 3 instance state, verifying database connectivity, adapter health, and collection availability.
10-Second Code Snippet
Section titled “10-Second Code Snippet”import { createHealthManager } from "@nexload-sdk/healthcheck";import { payloadReadinessCheck } from "@nexload-sdk/healthcheck-payload";import config from "@payload-config";import { getPayload } from "payload";
const payload = await getPayload({ config });
export const health = createHealthManager({ service: { name: "payload-cms" }, checks: [ payloadReadinessCheck(payload, { collection: "users", expectedMinDocuments: 1, }), ],});What You Get
Section titled “What You Get”- Database Connectivity Verification: Executes lightweight count queries via Payload Local API to confirm database accessibility.
- Boot Readiness Check: Guarantees that Payload has finished compiling collections, globals, and plugins before Kubernetes directs traffic.
- Zero Raw SQL/Mongo Dependency: Interacts solely through the authoritative Payload Local API.
Installation & Requirements
Section titled “Installation & Requirements”pnpm add @nexload-sdk/healthcheck-payload @nexload-sdk/healthcheck payloadRequires Payload CMS >=3.85.0 <4.0.0 and Node.js >=20.9.0.
Next Steps
Section titled “Next Steps”- Explore Production Guides & Queries for collection verification, timeout tuning, and troubleshooting.
- Check the API Reference & Signatures for check configuration options.