From 5f682c98fcac348bb0812ba74f4aaec66db2deaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C4=8Cerm=C3=A1k?= Date: Thu, 10 Oct 2024 16:38:43 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Make=20NEXT=5FPUBLIC=5FSENTRY=5F?= =?UTF-8?q?DSN=20required=20only=20in=20prod.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/simplewebauthn/src/env/env.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/simplewebauthn/src/env/env.mjs b/examples/simplewebauthn/src/env/env.mjs index bb60d1a..a8b72f3 100644 --- a/examples/simplewebauthn/src/env/env.mjs +++ b/examples/simplewebauthn/src/env/env.mjs @@ -5,7 +5,7 @@ export const env = createEnv({ shared: { NEXT_PUBLIC_CLIENT_ORIGIN: z.string().url(), NEXT_PUBLIC_DEV_SENTRY_DISABLED: z.enum(['true', 'false']).optional(), - NEXT_PUBLIC_SENTRY_DSN: z.string(), + NEXT_PUBLIC_SENTRY_DSN: process.env.NODE_ENV === 'development' ? z.string().optional() : z.string(), }, client: {