Deploying the XM Cloud Rendering Host to Vercel or Netlify

Fast global delivery for headless Sitecore

In XM Cloud, Sitecore hosts the CM (authoring) side. Your Next.js rendering host — the public website — is usually deployed to a platform like Vercel or Netlify.

Environment Variables

Typical settings (names vary by SDK version — check your starter):

  • Experience Edge context ID or delivery API key
  • Site name
  • Default language
  • Public URL
  • Editing secret (for the editing host)
  • Revalidation secret

Keep secrets in the platform's environment settings, never in Git.

Build Strategy

  • SSG with ISR for most pages
  • Generate a subset of pages at build time (top pages), the rest on demand
  • On-demand revalidation via webhooks on publish

Publish Webhooks

Configure Experience Edge webhooks to call a revalidation API route in your app when content is published:

// pages/api/revalidate.js (simplified)
export default async function handler(req, res) {
  if (req.headers['x-secret'] !== process.env.REVALIDATE_SECRET) return res.status(401).end();
  const paths = extractPaths(req.body);
  await Promise.all(paths.map((p) => res.revalidate(p)));
  res.json({ revalidated: paths.length });
}

Editing Host

A separate deployment (or XM Cloud's built-in editing host) serves Pages editing with draft content. Keep it separate from the public site.

Monitoring

  • Core Web Vitals in production
  • Build times and failures
  • Edge rate limits and cache hit rates

XM Cloud plus a modern frontend platform gives you enterprise authoring with startup-grade delivery speed.

Arivanandhan Chitheshwaran