Capture server exceptions with their release and environment, then require fresh import results before declaring a marketplace rollback successful. The deciding constraint is rollback safety. A quiet error feed cannot establish that a scheduled importer ran, finished, or produced usable listings.
Short answer: wrap Next.js API routes, route handlers, server actions, and Node.js background jobs with a shared error boundary. Preserve stack traces, allowlist request headers, and attach deployment-owned release and environment values. Evaluate three checks separately: execution failed, completion is overdue, and expected results are missing. An exception store supplies evidence for the first check; a heartbeat monitor and an application-defined result rule cover the others.
This engineering note uses an illustrative inventory import, not a production incident or benchmark. The implementation below captures local events without assuming a vendor payload schema.β¦