feat: use t3 env

This commit is contained in:
nafees nazik
2024-06-24 23:32:34 +05:30
parent 5540970d3f
commit 822b50842b
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
import { env } from "@/env";
import * as Sentry from "@sentry/nextjs"; import * as Sentry from "@sentry/nextjs";
Sentry.init({ Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, dsn: env.NEXT_PUBLIC_SENTRY_DSN,
tracesSampleRate: 1, tracesSampleRate: 1,
debug: false, debug: false,
replaysOnErrorSampleRate: 1.0, replaysOnErrorSampleRate: 1.0,
+2 -1
View File
@@ -1,7 +1,8 @@
import { env } from "@/env";
import * as Sentry from "@sentry/nextjs"; import * as Sentry from "@sentry/nextjs";
Sentry.init({ Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, dsn: env.NEXT_PUBLIC_SENTRY_DSN,
tracesSampleRate: 1, tracesSampleRate: 1,
debug: false, debug: false,
}); });
+2 -1
View File
@@ -1,7 +1,8 @@
import { env } from "@/env";
import * as Sentry from "@sentry/nextjs"; import * as Sentry from "@sentry/nextjs";
Sentry.init({ Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, dsn: env.NEXT_PUBLIC_SENTRY_DSN,
tracesSampleRate: 1, tracesSampleRate: 1,
debug: false, debug: false,
}); });