-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlighthouserc.js
More file actions
35 lines (34 loc) · 1.07 KB
/
lighthouserc.js
File metadata and controls
35 lines (34 loc) · 1.07 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
28
29
30
31
32
33
34
35
// @ts-check
// Lighthouse CI configuration for Docusaurus site
// See: https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/configuration.md
/** @type {import('@lhci/cli').LighthouseCIConfig} */
module.exports = {
ci: {
collect: {
// Use the built Docusaurus site
staticDistDir: './build',
// URLs to audit (homepage and key pages)
url: [
'http://localhost/',
'http://localhost/docs/intro.html',
'http://localhost/blog.html',
],
// Number of runs per URL for more stable results
numberOfRuns: 3,
},
assert: {
// Assertions for performance budgets
assertions: {
// Performance category thresholds
'categories:performance': ['warn', { minScore: 0.8 }],
'categories:accessibility': ['error', { minScore: 0.9 }],
'categories:best-practices': ['warn', { minScore: 0.8 }],
'categories:seo': ['warn', { minScore: 0.9 }],
},
},
upload: {
// Use temporary public storage (no server needed)
target: 'temporary-public-storage',
},
},
};