Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Disable sentry for dev

Tomas Valenta2e1612790a89
diff --git a/sentry.client.config.ts b/sentry.client.config.ts
index 07935f0dc..dc024c062 100644
--- a/sentry.client.config.ts
+++ b/sentry.client.config.ts
@@ -2,10 +2,10 @@
// The config you add here will be used whenever a users loads a page in their browser.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
-import * as Sentry from "@sentry/nextjs";
+import * as Sentry from '@sentry/nextjs'
Sentry.init({
- dsn: "https://[email protected]/4505360685924352",
+ dsn: 'https://[email protected]/4505360685924352',
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,
@@ -27,4 +27,5 @@ Sentry.init({
blockAllMedia: true,
}),
],
-});
+ enabled: process.env.NODE_ENV !== 'development',
+})
diff --git a/sentry.edge.config.ts b/sentry.edge.config.ts
index 315645623..19d9a68d2 100644
--- a/sentry.edge.config.ts
+++ b/sentry.edge.config.ts
@@ -3,14 +3,15 @@
// Note that this config is unrelated to the Vercel Edge Runtime and is also required when running locally.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
-import * as Sentry from "@sentry/nextjs";
+import * as Sentry from '@sentry/nextjs'
Sentry.init({
- dsn: "https://[email protected]/4505360685924352",
+ dsn: 'https://[email protected]/4505360685924352',
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
-});
+ enabled: process.env.NODE_ENV !== 'development',
+})
diff --git a/sentry.server.config.ts b/sentry.server.config.ts
index 232bfe40e..d86363618 100644
--- a/sentry.server.config.ts
+++ b/sentry.server.config.ts
@@ -2,14 +2,15 @@
// The config you add here will be used whenever the server handles a request.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
-import * as Sentry from "@sentry/nextjs";
+import * as Sentry from '@sentry/nextjs'
Sentry.init({
- dsn: "https://[email protected]/4505360685924352",
+ dsn: 'https://[email protected]/4505360685924352',
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
-});
+ enabled: process.env.NODE_ENV !== 'development',
+})