aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMaheshtheDev <[email protected]>2025-08-25 21:41:53 +0000
committerMaheshtheDev <[email protected]>2025-08-25 21:41:53 +0000
commit3760558bf2a7a9a57eb200e5500e3f0aa06edb1a (patch)
treed32080a133e92df0d02592e686b77fa6b2c4c9f6 /apps
parentfeat: add 'last used' badge to login page (#387) (diff)
downloadsupermemory-3760558bf2a7a9a57eb200e5500e3f0aa06edb1a.tar.xz
supermemory-3760558bf2a7a9a57eb200e5500e3f0aa06edb1a.zip
fix sentry server issue (#388)
Diffstat (limited to 'apps')
-rw-r--r--apps/web/instrumentation.ts13
-rw-r--r--apps/web/sentry.edge.config.ts19
-rw-r--r--apps/web/sentry.server.config.ts18
3 files changed, 0 insertions, 50 deletions
diff --git a/apps/web/instrumentation.ts b/apps/web/instrumentation.ts
deleted file mode 100644
index 964f937c..00000000
--- a/apps/web/instrumentation.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import * as Sentry from '@sentry/nextjs';
-
-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');
- }
-}
-
-export const onRequestError = Sentry.captureRequestError;
diff --git a/apps/web/sentry.edge.config.ts b/apps/web/sentry.edge.config.ts
deleted file mode 100644
index cff5a86d..00000000
--- a/apps/web/sentry.edge.config.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file configures the initialization of Sentry for edge features (middleware, edge routes, and so on).
-// The config you add here will be used whenever one of the edge features is loaded.
-// 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";
-
-Sentry.init({
- dsn: "https://2451ebfd1a7490f05fa7776482df81b6@o4508385422802944.ingest.us.sentry.io/4509872269819904",
-
- // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
- tracesSampleRate: 1,
-
- // Enable logs to be sent to Sentry
- enableLogs: true,
-
- // Setting this option to true will print useful information to the console while you're setting up Sentry.
- debug: false,
-});
diff --git a/apps/web/sentry.server.config.ts b/apps/web/sentry.server.config.ts
deleted file mode 100644
index 2cd5afbe..00000000
--- a/apps/web/sentry.server.config.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file configures the initialization of Sentry on the server.
-// 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";
-
-Sentry.init({
- dsn: "https://2451ebfd1a7490f05fa7776482df81b6@o4508385422802944.ingest.us.sentry.io/4509872269819904",
-
- // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
- tracesSampleRate: 1,
-
- // Enable logs to be sent to Sentry
- enableLogs: true,
-
- // Setting this option to true will print useful information to the console while you're setting up Sentry.
- debug: false,
-});