From 5dfbd2cccd82cbe55870709a9d3cf7b3b5852c9d Mon Sep 17 00:00:00 2001 From: Firq Date: Wed, 23 Oct 2024 00:20:44 +0200 Subject: [PATCH] PageSpeed Insights config --- package.json | 2 +- unlighthouse.config.ts | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3896d98..bd24e07 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@firq/fgosite", "type": "module", - "version": "0.2.0-pre.29", + "version": "0.2.0-pre.30", "private": true, "scripts": { "dev": "astro dev", diff --git a/unlighthouse.config.ts b/unlighthouse.config.ts index fde8667..0e6075b 100644 --- a/unlighthouse.config.ts +++ b/unlighthouse.config.ts @@ -1,4 +1,18 @@ export default { + lighthouseOptions: { + throttlingMethod: "devtools", + throttling: { + cpuSlowdownMultiplier: 4, + requestLatencyMs: 150, + downloadThroughputKbps: 1638.4, + uploadThroughputKbps: 1638.4, + }, + screenEmulation: { + width: 412, + height: 823, + deviceScaleFactor: 1.75, + } + }, puppeteerOptions: { args: [ "--no-sandbox", @@ -13,9 +27,7 @@ export default { buildStatic: true, }, scanner: { - device: 'mobile', sitemap: true, - throttle: false, dynamicSampling: false, samples: 3, },