mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 04:33:10 +00:00
Added Sentry.io
This commit is contained in:
parent
87a48c4fc7
commit
3554a03a2f
7 changed files with 1367 additions and 12 deletions
13
instrumentation.ts
Normal file
13
instrumentation.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import * as Sentry from '@sentry/nextjs';
|
||||
|
||||
export async function register() {
|
||||
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
||||
await import('./sentry.server.config');
|
||||
}
|
||||
|
||||
if (process.env.NEXT_RUNTIME === 'edge') {
|
||||
await import('./sentry.edge.config');
|
||||
}
|
||||
}
|
||||
|
||||
export const onRequestError = Sentry.captureRequestError;
|
Loading…
Add table
Add a link
Reference in a new issue