import type { NitroErrorHandler } from 'nitropack'; const errorHandler: NitroErrorHandler = function (error, event) { event.res.end(`[error handler] ${error.stack}`); }; export default errorHandler;