Skip to content

LighthouseConfigOptions

Defined in: index.ts:45

Options for defineConfig.

optional assertions?: LighthouseAssertion

Defined in: index.ts:55

Per-audit assertions (lhci assert.assertions). Defaults to defaultAssertions.


optional startServerCommand?: string

Defined in: index.ts:49

The command lhci runs to start the site before auditing (lhci collect.startServerCommand). Omitted when unset.


optional startServerReadyPattern?: string

Defined in: index.ts:51

Pattern lhci waits for in server stdout before running audits. Defaults to lhci’s built-in /(listen|ready)/i.


optional startServerReadyTimeout?: number

Defined in: index.ts:53

Milliseconds to wait for startServerReadyPattern before timing out.


optional uploadTarget?: string

Defined in: index.ts:57

"temporary-public-storage"

url: string | string[]

Defined in: index.ts:47

The URL, or URLs, Lighthouse CI audits (lhci collect.url).