Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zigapk authored Mar 20, 2024
1 parent 6509b20 commit bba43ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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(),
Expand Down Expand Up @@ -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,
};
Expand Down

0 comments on commit bba43ef

Please sign in to comment.