next.js/examples/cms-sitecore-xmcloud/src/pages/api/healthz.ts
healthz.ts13 lines428 B
import { HealthcheckMiddleware } from "@sitecore-jss/sitecore-jss-nextjs/monitoring";

/**
 * This Next.js API route is used to handle healthz check request.
 * By default this is used only by Sitecore XM Cloud (when running as editing host),
 * but could be used in other deployment scenarios.
 */

// Wire up the HealthcheckMiddleware handler
const handler = new HealthcheckMiddleware().getHandler();

export default handler;
Quest for Codev2.0.0
/
SIGN IN