mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-17 21:32:36 +01:00
* add sentry * nit * nit * add requirement to ee * try to ensure sentry is installed in integration tests
13 lines
330 B
TypeScript
13 lines
330 B
TypeScript
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");
|
|
}
|
|
}
|
|
}
|