added sentry error monitoring

This commit is contained in:
Rajpreet0 2026-08-04 14:17:53 +02:00
parent b9645dd32f
commit bc02cd4de1
10 changed files with 1492 additions and 65 deletions

22
sentry.server.config.ts Normal file
View file

@ -0,0 +1,22 @@
// 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://e8bb1cf7421d4fd387d1235b742ea68f@o4511852428525568.ingest.de.sentry.io/4511852431802448",
// 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,
dataCollection: {
// To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#dataCollection
// userInfo: false,
// httpBodies: [],
},
});