mirror of
https://github.com/calli-eve/eve-pi.git
synced 2026-02-16 20:49:50 +01:00
add sentry to get fronted error logging
This commit is contained in:
9
src/instrumentation.ts
Normal file
9
src/instrumentation.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user