Skip to content

getWorkerConfig

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-12-screenshots/screenshot-worker.config.ts

Get screenshot worker client configuration from environment variables

Environment variables:

  • SCREENSHOT_WORKER_URL: Base URL of the worker service (default: http://localhost:3000)
  • SCREENSHOT_WORKER_TIMEOUT: Job completion timeout in ms (default: 300000)
  • SCREENSHOT_WORKER_POLL_INTERVAL: Poll interval in ms (default: 2000)

Signature

ts
function getWorkerConfig(): ScreenshotWorkerClientConfig

Returns: ScreenshotWorkerClientConfig

Was this page helpful?

Download as PDF