From bba43efd3e0bb26b98f606ac3b673f14945d8203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDiga=20Pata=C4=8Dko=20Koderman?= Date: Wed, 20 Mar 2024 07:25:36 +0100 Subject: [PATCH] Fix typo --- src/env.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/env.mjs b/src/env.mjs index e61b324..39fef64 100644 --- a/src/env.mjs +++ b/src/env.mjs @@ -20,7 +20,7 @@ const baseSchema = { // Development environment-specific schema const devSchema = { client: { - NEXT_PUBLIC_SENTRY_DNS: z.string().optional(), + NEXT_PUBLIC_SENTRY_DSN: z.string().optional(), NEXT_PUBLIC_SENTRY_TRACE_SAMPLE_RATE: z.coerce.number().optional(), }, // ... other dev/test-specific properties @@ -29,7 +29,7 @@ const devSchema = { // Staging environment-specific schema const stagingSchema = { client: { - NEXT_PUBLIC_SENTRY_DNS: z.string().optional(), + NEXT_PUBLIC_SENTRY_DSN: z.string().optional(), NEXT_PUBLIC_SENTRY_TRACE_SAMPLE_RATE: z.coerce.number().optional(), }, // ... other staging-specific properties @@ -38,7 +38,7 @@ const stagingSchema = { // Production environment-specific schema const productionSchema = { client: { - NEXT_PUBLIC_SENTRY_DNS: z + NEXT_PUBLIC_SENTRY_DSN: z .string() .min(1, { message: 'Sentry DNS is required in production' }), NEXT_PUBLIC_SENTRY_TRACE_SAMPLE_RATE: z.coerce.number(), @@ -70,7 +70,7 @@ const runtimeEnv = { NODE_ENV: process.env.NODE_ENV, NEXT_PUBLIC_NODE_ENV: process.env.NEXT_PUBLIC_NODE_ENV, SENTRY_AUTH_TOKEN: process.env.SENTRY_AUTH_TOKEN, - NEXT_PUBLIC_SENTRY_DNS: process.env.NEXT_PUBLIC_SENTRY_DNS, + NEXT_PUBLIC_SENTRY_DSN: process.env.NEXT_PUBLIC_SENTRY_DNS, NEXT_PUBLIC_SENTRY_TRACE_SAMPLE_RATE: process.env.NEXT_PUBLIC_SENTRY_TRACE_SAMPLE_RATE, };