aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/sentry.server.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/sentry.server.config.js')
-rw-r--r--docs/sentry.server.config.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/sentry.server.config.js b/docs/sentry.server.config.js
new file mode 100644
index 0000000..db0964c
--- /dev/null
+++ b/docs/sentry.server.config.js
@@ -0,0 +1,11 @@
+// This file configures the initialization of Sentry on the server.
+// https://docs.sentry.io/platforms/javascript/guides/nextjs/
+
+import * as Sentry from "@sentry/nextjs";
+
+Sentry.init({
+ environment: process.env.NEXT_PUBLIC_VERCEL_ENV,
+ dsn: process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN,
+ // Adjust this value in production, or use tracesSampler for greater control
+ tracesSampleRate: 1.0,
+});