---
title: "Lighthouse Configuration"
description: "Customize Google Lighthouse audit settings, categories, and performance thresholds within Unlighthouse scans."
canonical_url: "https://unlighthouse.dev/guide/guides/lighthouse"
---

> Index of every page on this site: [llms.txt](https://unlighthouse.dev/llms.txt)

Customize audit categories, performance thresholds, and behavior through the `lighthouseOptions` configuration key. Unlighthouse passes these options directly to Google Lighthouse.

```ts
import { defineUnlighthouseConfig } from 'unlighthouse/config'

export default defineUnlighthouseConfig({
  lighthouseOptions: {
    throttlingMethod: 'devtools',
  },
})
```

For complete options, see the [Lighthouse Configuration docs](https://github.com/GoogleChrome/lighthouse/blob/master/docs/configuration.md).

## Aliases

Unlighthouse aims to minimise and simplify configuration, where possible.

For this reason, a number of configurations aliases are provided for your convenience.

- [Switching device: mobile and desktop](https://unlighthouse.dev/guide/guides/device)
- [Toggle Throttling](https://unlighthouse.dev/guide/guides/device#network-throttling)

You can always configure lighthouse directly if you are comfortable with the configuration.

## Selecting Categories

By default, Unlighthouse will scan the categories: `'performance', 'accessibility', 'best-practices', 'seo'`.

The performance category measures [Core Web Vitals](https://unlighthouse.dev/glossary) including [LCP](https://unlighthouse.dev/glossary/lcp), [CLS](https://unlighthouse.dev/glossary/cls), and [INP](https://unlighthouse.dev/glossary/inp).

It can be useful to remove certain categories from being scanned to improve scan times. The Unlighthouse UI will adapt
to any categories you select.

**Only Performance**

```ts
export default defineUnlighthouseConfig({
  lighthouseOptions: {
    onlyCategories: ['performance'],
  },
})
```

## Sitemap

See the full [sitemap](https://unlighthouse.dev/sitemap.md) for all pages.
