MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / register

Function register

src/instrumentation.ts:3–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import * as Sentry from '@sentry/nextjs';
2
3export async function register() {
4 if (process.env.NEXT_RUNTIME === 'nodejs') {
5 await import('../sentry.server.config');
6 }
7
8 if (process.env.NEXT_RUNTIME === 'edge') {
9 await import('../sentry.edge.config');
10 }
11}
12
13export const onRequestError = Sentry.captureRequestError;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected