mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-26 12:47:55 +02:00
🔧 Update sentry config (#1196)
This commit is contained in:
parent
6df4405cf4
commit
43ead55892
3 changed files with 44 additions and 7 deletions
9
apps/web/src/instrumentation.ts
Normal file
9
apps/web/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");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue