Hi, I am using astro with node ssr. I want to customize node behavior to not exit node in case of ERR_UNHANDLED_REJECTION .
I can do this by adding handler
process.on('unhandledRejection', (reason, promise) => {
console.error('Unhandled Promise Rejection:', reason);
// Handle the rejection, or at least log it for later debugging
// You might also consider reporting it to an error tracking service
});
However, it is not clear to me where exactly should I put this logic ?