-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlighthouserc.js
More file actions
38 lines (38 loc) · 1.31 KB
/
lighthouserc.js
File metadata and controls
38 lines (38 loc) · 1.31 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
36
37
38
module.exports = {
ci: {
collect: {
url: [
'http://localhost:3000/',
'http://localhost:3000/about',
'http://localhost:3000/hackathons',
'http://localhost:3000/leaderboard',
'http://localhost:3000/auth/signin',
'http://localhost:3000/protected/dashboard'
],
startServerCommand: 'npm run build && npm run start',
startServerReadyPattern: 'Ready in|ready on|Local:',
startServerReadyTimeout: 120000,
numberOfRuns: 1,
settings: {
chromeFlags: '--no-sandbox --disable-dev-shm-usage --disable-gpu',
preset: 'desktop'
}
},
assert: {
assertions: {
'categories:performance': ['warn', { minScore: 0.7 }],
'categories:accessibility': ['warn', { minScore: 0.8 }],
'categories:best-practices': ['warn', { minScore: 0.8 }],
'categories:seo': ['warn', { minScore: 0.8 }],
'first-contentful-paint': ['warn', { maxNumericValue: 3000 }],
'largest-contentful-paint': ['warn', { maxNumericValue: 4000 }],
'cumulative-layout-shift': ['warn', { maxNumericValue: 0.2 }],
'total-blocking-time': ['warn', { maxNumericValue: 500 }],
'speed-index': ['warn', { maxNumericValue: 4000 }]
}
},
upload: {
target: 'temporary-public-storage'
}
}
};