MCPcopy
hub / github.com/ixartz/SaaS-Boilerplate / register

Function register

src/instrumentation.ts:27–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25};
26
27export function register() {
28 if (!process.env.NEXT_PUBLIC_SENTRY_DISABLED) {
29 if (process.env.NEXT_RUNTIME === 'nodejs') {
30 // Node.js Sentry configuration
31 Sentry.init(sentryOptions);
32 }
33
34 if (process.env.NEXT_RUNTIME === 'edge') {
35 // Edge Sentry configuration
36 Sentry.init(sentryOptions);
37 }
38 }
39}
40
41export const onRequestError = Sentry.captureRequestError;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected