Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: add sentry back to server (#2593)

Max Deichmann62289563849c
diff --git a/web/next.config.mjs b/web/next.config.mjs
index a3fe994643..d720a8ee91 100644
--- a/web/next.config.mjs
+++ b/web/next.config.mjs
@@ -3,6 +3,7 @@
* for Docker builds.
*/
await import("./src/env.mjs");
+import { withSentryConfig } from "@sentry/nextjs";
import { env } from "./src/env.mjs";
/**
@@ -142,4 +143,4 @@ const sentryOptions = {
tunnelRoute: "/api/monitoring-tunnel",
};
-export default nextConfig;
+export default withSentryConfig(nextConfig, sentryOptions);
diff --git a/web/src/instrumentation.ts b/web/src/instrumentation.ts
index 2b5d275c99..f8a929ba42 100644
--- a/web/src/instrumentation.ts
+++ b/web/src/instrumentation.ts
@@ -1,6 +1,6 @@
export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
- // await import("./sentry.server.config");
+ await import("./sentry.server.config");
}
if (process.env.NEXT_RUNTIME === "edge") {