Skip to content

Commit

Permalink
fix: Allow zod to coerce the crawler timeout from strings. Fixes #134
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed May 3, 2024
1 parent afefbe3 commit 81e49fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shared/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const allEnv = z.object({
REDIS_DB_IDX: z.coerce.number().optional(),
CRAWLER_HEADLESS_BROWSER: stringBool("true"),
BROWSER_WEB_URL: z.string().url().optional(),
CRAWLER_JOB_TIMEOUT_SEC: z.number().default(60),
CRAWLER_NAVIGATE_TIMEOUT_SEC: z.number().default(30),
CRAWLER_JOB_TIMEOUT_SEC: z.coerce.number().default(60),
CRAWLER_NAVIGATE_TIMEOUT_SEC: z.coerce.number().default(30),
CRAWLER_NUM_WORKERS: z.coerce.number().default(1),
CRAWLER_DOWNLOAD_BANNER_IMAGE: stringBool("true"),
CRAWLER_STORE_SCREENSHOT: stringBool("true"),
Expand Down

0 comments on commit 81e49fa

Please sign in to comment.