mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: enable sentry for the frontend
This commit is contained in:
parent
0fc6713ec8
commit
a5a87d7866
11 changed files with 2641 additions and 737 deletions
9
apps/web/instrumentation.ts
Normal file
9
apps/web/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');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue