Skip to content
This repository was archived by the owner on Jul 31, 2024. It is now read-only.

Latest commit

 

History

History
15 lines (6 loc) · 743 Bytes

error-handling.md

File metadata and controls

15 lines (6 loc) · 743 Bytes

Injecting Browser Agent

Q: How can I get @newrelic/next 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.