Skip to content

Commit 4ec22d7

Browse files
committed
fix(sentry): correctly set up sentry
1 parent 17b2e83 commit 4ec22d7

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

nuxt.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default defineNuxtConfig({
4242
public: {
4343
sentry: {
4444
dsn: process.env.SENTRY_DSN,
45-
environment: 'development',
45+
environment: process.env.SENTRY_ENV,
4646
},
4747
clerkPublishableKey: process.env.CLERK_PUBLISHABLE_KEY,
4848
payloadCmsUrl: process.env.PAYLOAD_CMS_URL,
@@ -72,7 +72,6 @@ export default defineNuxtConfig({
7272
},
7373

7474
sentry: {
75-
debug: true,
7675
sourceMapsUploadOptions: {
7776
org: 'computerization',
7877
project: 'enspire',

sentry.client.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ import * as Sentry from '@sentry/nuxt'
22

33
Sentry.init({
44
// There isn't any way to get the dsn from env var here
5-
dsn: 'https://fa9f1c768005ae729e6fb560d2b02713@o4506819268444160.ingest.us.sentry.io/4506822264029184',
5+
environment: useRuntimeConfig().public.sentry.environment,
6+
dsn: useRuntimeConfig().public.sentry.dsn,
67
})

sentry.server.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import * as Sentry from '@sentry/nuxt'
2+
3+
Sentry.init({
4+
dsn: 'https://fa9f1c768005ae729e6fb560d2b02713@o4506819268444160.ingest.us.sentry.io/4506822264029184',
5+
})

0 commit comments

Comments
 (0)