forked from bigcommerce/catalyst
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunlighthouse.config.ts
More file actions
27 lines (25 loc) · 1.13 KB
/
Copy pathunlighthouse.config.ts
File metadata and controls
27 lines (25 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import type { UserConfig } from 'unlighthouse';
export default {
ci: {
buildStatic: true,
// Disabling the budget so we can audit and fix the issues first
budget: {
// "best-practices": 100,
// "accessibility": 100,
// "seo": 100,
},
},
lighthouseOptions: {
// Disabling performance tests because lighthouse utilizes hardware throttling. This affects concurrently running tests which might lead to false positives.
// The best way to truly measure performance is to use real user metrics – Vercel's Speed Insights is a great tool for that.
onlyCategories: ['best-practices', 'accessibility', 'seo'],
skipAudits: [
// Disabling `is-crawlable` as it's more relevant for production sites.
'is-crawlable',
// Disabling third-party cookies because the only third-party cookies we have is provided through Cloudflare for our CDN, which is not relevant for our audits.
'third-party-cookies',
// Disabling inspector issues as it's only providing third-party cookie issues, which are not relevant for our audits.
'inspector-issues',
]
}
} satisfies UserConfig;