|
|
@@ -2,13 +2,15 @@
|
|
2
|
2
|
// The config you add here will be used whenever the server handles a request.
|
|
3
|
3
|
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
|
|
4
|
4
|
|
|
5
|
|
-import * as Sentry from '@sentry/nextjs';
|
|
|
5
|
+import * as Sentry from '@sentry/nextjs'
|
|
6
|
6
|
|
|
7
|
|
-const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
|
|
|
7
|
+const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN
|
|
8
|
8
|
|
|
9
|
9
|
Sentry.init({
|
|
10
|
|
- dsn: SENTRY_DSN || 'https://d88435642612471d93823489a56ae053@o578706.ingest.sentry.io/5824198',
|
|
|
10
|
+ dsn:
|
|
|
11
|
+ SENTRY_DSN ||
|
|
|
12
|
+ 'https://d88435642612471d93823489a56ae053@o578706.ingest.sentry.io/5824198',
|
|
11
|
13
|
// Note: if you want to override the automatic release value, do not set a
|
|
12
|
14
|
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
|
|
13
|
15
|
// that it will also get attached to your source maps
|
|
14
|
|
-});
|
|
|
16
|
+})
|