Browse Source

correct env variables

Abhinav-grd 4 năm trước cách đây
mục cha
commit
87846524b6
2 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 2 2
      sentry.client.config.js
  2. 2 2
      sentry.server.config.js

+ 2 - 2
sentry.client.config.js

@@ -1,7 +1,7 @@
 import * as Sentry from '@sentry/nextjs';
 
-const SENTRY_DSN = process.env.SENTRY_DSN ?? 'https://860186db60c54c7fbacfe255124958e8@errors.ente.io/4';
-const SENTRY_ENV = process.env.SENTRY_ENV ?? 'development';
+const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN ?? 'https://860186db60c54c7fbacfe255124958e8@errors.ente.io/4';
+const SENTRY_ENV = process.env.NEXT_PUBLIC_SENTRY_ENV ?? 'development';
 console.log(SENTRY_ENV);
 Sentry.init({
     dsn: SENTRY_DSN,

+ 2 - 2
sentry.server.config.js

@@ -1,7 +1,7 @@
 import * as Sentry from '@sentry/nextjs';
 
-const SENTRY_DSN = process.env.SENTRY_DSN ?? 'https://860186db60c54c7fbacfe255124958e8@errors.ente.io/4';
-const SENTRY_ENV = process.env.SENTRY_ENV ?? 'development';
+const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN ?? 'https://860186db60c54c7fbacfe255124958e8@errors.ente.io/4';
+const SENTRY_ENV = process.env.NEXT_PUBLIC_SENTRY_ENV ?? 'development';
 
 Sentry.init({
     dsn: SENTRY_DSN,