mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-12 14:12:53 +02:00
add sentry (#2786)
* add sentry * nit * nit * add requirement to ee * try to ensure sentry is installed in integration tests
This commit is contained in:
12
web/instrumentation.ts
Normal file
12
web/instrumentation.ts
Normal file
@ -0,0 +1,12 @@
|
||||
export async function register() {
|
||||
if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
|
||||
if (process.env.NEXT_RUNTIME === "nodejs") {
|
||||
await import("./sentry.client.config");
|
||||
await import("./sentry.server.config");
|
||||
}
|
||||
|
||||
if (process.env.NEXT_RUNTIME === "edge") {
|
||||
await import("./sentry.edge.config");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user