Skip to content

Commit

Permalink
chore: Update .env.example
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Oct 13, 2024
1 parent 4dc6aa1 commit 70ad4f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ GITLAB_CLIENT_ID=
GITLAB_CLIENT_SECRET=
GITLAB_CALLBACK_URL=

SENTRY_DSN=
SENTRY_DSN=https://example.com
SENTRY_ORG=
SENTRY_PROJECT=
SENTRY_TRACES_SAMPLE_RATE=
SENTRY_PROFILES_SAMPLE_RATE=
SENTRY_TRACES_SAMPLE_RATE=1.0
SENTRY_PROFILES_SAMPLE_RATE=1.0
SENTRY_ENV=

SMTP_HOST=
Expand Down Expand Up @@ -51,3 +51,6 @@ BACKEND_URL=http://localhost:4200
NEXT_PUBLIC_BACKEND_URL=http://localhost:4200

NODE_ENV=dev

THROTTLE_TTL=60
THROTTLE_LIMIT=5
4 changes: 2 additions & 2 deletions apps/api/src/common/env/env.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ const devSchema = z.object({
MINIO_USE_SSL: z.string().optional(),

FEEDBACK_FORWARD_EMAIL: z.string().email(),
THROTTLE_TTL: z.string().transform((val) => parseInt(val, 10)), // Convert string to number
THROTTLE_LIMIT: z.string().transform((val) => parseInt(val, 10)) // Convert string to number
THROTTLE_TTL: z.string().transform((val) => parseInt(val, 10)),
THROTTLE_LIMIT: z.string().transform((val) => parseInt(val, 10))
})

const prodSchema = z.object({
Expand Down

0 comments on commit 70ad4f7

Please sign in to comment.