Skip to content

Latest commit

 

History

History
13 lines (6 loc) · 749 Bytes

error-handling.md

File metadata and controls

13 lines (6 loc) · 749 Bytes

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.