fixed unlighthouse 10

This commit is contained in:
Firq 2025-04-12 00:06:46 +02:00
parent 278befbb50
commit 215b803749
Signed by: Firq
GPG key ID: DCE182BA39C697B2
4 changed files with 5913 additions and 18 deletions

View file

@ -1,4 +1,6 @@
export default async () => {
import type { UserConfig } from 'unlighthouse'
export default async (): Promise<UserConfig> => {
/* fetch sitemap from debug container */
const sitemap = await (await fetch('http://website:8081/sitemap-0.xml')).text();
/* format URLs to work with debug container */
@ -10,7 +12,6 @@ export default async () => {
/* actual config */
return {
lighthouseOptions: {
cache: false,
throttlingMethod: 'devtools',
throttling: {
cpuSlowdownMultiplier: 4,
@ -22,10 +23,11 @@ export default async () => {
width: 412,
height: 823,
deviceScaleFactor: 1.75,
}
},
skipAudits: [ 'is-on-https', 'redirects-http', 'uses-http2' ],
},
puppeteerOptions: {
args: ['--no-sandbox', '--disable-setuid-sandbox'],
args: [ '--no-sandbox', '--disable-setuid-sandbox' ],
},
puppeteerClusterOptions: {
maxConcurrency: 1
@ -33,7 +35,6 @@ export default async () => {
ci: {
budget: 50,
buildStatic: true,
skipAudits: ['is-on-https', 'redirects-http', 'uses-http2']
},
scanner: {
sitemap: true,
@ -41,6 +42,7 @@ export default async () => {
samples: 3,
},
outputPath: 'unlighthouse-reports',
cache: false,
urls
}
}