Skip to content

Commit

Permalink
fix: set default puppeteer-cluster timeout to 120s
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed May 7, 2024
1 parent 92c0d1a commit 560b42f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/resolveConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ export const resolveUserConfig: (userConfig: UserConfig) => Promise<ResolvedUser
config.routerPrefix = withSlashes(config.routerPrefix)

config.puppeteerOptions = config.puppeteerOptions || {}
config.puppeteerClusterOptions = config.puppeteerClusterOptions || {}
config.puppeteerClusterOptions = defu(config.puppeteerClusterOptions, {
timeout: 120_000,
})
config.puppeteerOptions = defu(config.puppeteerOptions, {
// set viewport
headless: true,
Expand Down

0 comments on commit 560b42f

Please sign in to comment.