Back to Node Newrelic

Error Handling

documentation/nextjs/faqs/error-handling.md

13.19.2746 B
Original Source

Error Handling

Q: How can I get the Next.js instrumentation to log errors to New Relic Errors Inbox?

A: The Node.js agent has an API to log errors newrelic.noticeError. Next.js has an error page that can be used to add the API call.

Log errors to Errors Inbox

The error page varies between Pages Router and App Router Next.js projects.