Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
18 lines
424 B
TypeScript
18 lines
424 B
TypeScript
import * as Sentry from '@sentry/nextjs'
|
|
|
|
export async function register() {
|
|
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
|
const { initServerSentry } = await import('./sentry.server.config')
|
|
|
|
initServerSentry()
|
|
}
|
|
|
|
if (process.env.NEXT_RUNTIME === 'edge') {
|
|
const { initEdgeSentry } = await import('./sentry.edge.config')
|
|
|
|
initEdgeSentry()
|
|
}
|
|
}
|
|
|
|
export const onRequestError = Sentry.captureRequestError
|