Skip to content

Commit

Permalink
🔧 Make NEXT_PUBLIC_SENTRY_DSN required only in prod.
Browse files Browse the repository at this point in the history
  • Loading branch information
cermakjiri committed Oct 10, 2024
1 parent 06696c7 commit 5f682c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simplewebauthn/src/env/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 5f682c9

Please sign in to comment.