Skip to main content
Version: Next

RouteOptions

Per-route overrides, passed as the last argument of addHandler and addDefaultHandler.

Index

Properties

optionalrequestHandlerTimeoutSecs

requestHandlerTimeoutSecs?: number

Overrides the crawler's requestHandlerTimeoutSecs for this route only. Useful when one kind of page needs markedly more time than the rest - a listing page behind an infinite scroll, say - and you do not want to raise the timeout for every other page to accommodate it.

Applies only to this route's handler. The navigation and the navigation hooks keep their own timeouts.

Page Options