-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlighthouserc.js
More file actions
30 lines (30 loc) · 899 Bytes
/
Copy pathlighthouserc.js
File metadata and controls
30 lines (30 loc) · 899 Bytes
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
/** @type {import('@lhci/cli').Config} */
module.exports = {
ci: {
collect: {
// Use the Next.js production build
startServerCommand: "bun run start",
startServerReadyPattern: "Ready in",
startServerReadyTimeout: 30000,
url: ["http://localhost:3000"],
numberOfRuns: 3,
settings: {
// Simulate a typical user device
preset: "desktop",
// Skip audits that require network conditions we can't control in CI
skipAudits: ["uses-http2"],
},
},
assert: {
assertions: {
"categories:performance": ["error", { minScore: 0.8 }],
"categories:accessibility": ["warn", { minScore: 0.7 }],
"categories:best-practices": ["warn", { minScore: 0.7 }],
"categories:seo": ["warn", { minScore: 0.7 }],
},
},
upload: {
target: "temporary-public-storage",
},
},
};