mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What Cover the Next.js internal errors are not captured by instrumentation onRequestError API Also skip deployment tests for onRequestError API due to the private env flag `__NEXT_EXPERIMENTAL_INSTRUMENTATION` cannot be used in deployment <!-- Closes NDX-33 -->
4 lines
112 B
JavaScript
4 lines
112 B
JavaScript
export function onRequestError(err, request, context) {
|
|
console.log('[instrumentation]:error', err.message)
|
|
}
|