Skip to main content
Guides

Dynamic Sampling

The v1 scan pipeline does not apply legacy dynamic sampling or custom sampling rules. Select representative URLs explicitly when a site has many similar pages.

import { defineUnlighthouseConfig } from 'unlighthouse/config'

export default defineUnlighthouseConfig({
  site: 'https://example.com',
  urls: ['/', '/blog/example', '/products/example'],
})

Explicit URLs stop link following. Use scanner.maxRoutes to bound a larger scan. scanner.samples repeats audits for each selected URL and does not select route groups.

For the previous sampling behavior, choose the 0.x documentation in the version switcher.

Did this page help you?
Anything that could be done better? :)
Help us improve this page. You can edit this page on GitHub or provide anonymous feedback below.