Adapt lighthouse

This commit is contained in:
Firq 2025-04-16 21:42:27 +02:00
parent f11a53cd11
commit e402b7e321
Signed by: Firq
GPG key ID: DCE182BA39C697B2
3 changed files with 15 additions and 11 deletions

View file

@ -12,17 +12,21 @@ export default async (): Promise<UserConfig> => {
/* actual config */
return {
lighthouseOptions: {
throttlingMethod: 'devtools',
throttlingMethod: 'simulate',
throttling: {
cpuSlowdownMultiplier: 4,
requestLatencyMs: 150,
downloadThroughputKbps: 1638.4,
uploadThroughputKbps: 1638.4,
rttMs: 150,
throughputKbps: 1638.4,
requestLatencyMs: 562.5, // estimated latency at 150ms RTT
downloadThroughputKbps: 1474.56,
uploadThroughputKbps: 675,
cpuSlowdownMultiplier: 4
},
screenEmulation: {
width: 412,
height: 823,
deviceScaleFactor: 1.75,
mobile: true,
width: 360,
height: 640,
deviceScaleFactor: 2.625,
disabled: false
},
skipAudits: [ 'is-on-https', 'redirects-http', 'uses-http2' ],
},