-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlighthouserc.js
More file actions
35 lines (34 loc) · 1.03 KB
/
lighthouserc.js
File metadata and controls
35 lines (34 loc) · 1.03 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
let previewBaseUrl = process.env.LHCI_PREVIEW_URL || 'http://localhost:3000';
console.log("Initial preview URL:", previewBaseUrl);
module.exports = {
ci: {
collect: {
url: [
`${previewBaseUrl}/`,
`${previewBaseUrl}/feeds`,
`${previewBaseUrl}/feeds/gtfs/mdb-2126`,
`${previewBaseUrl}/feeds/gtfs_rt/mdb-2585`,
`${previewBaseUrl}/feeds/gbfs/gbfs-flamingo_porirua`
],
numberOfRuns: 1, // 1 to speed up the CI process but can be increased for more reliable results
settings: {
formFactor: 'desktop',
throttlingMethod: 'provided',
skipAudits: ['robots-txt', 'is-crawlable'],
screenEmulation: {
mobile: false,
width: 1350,
height: 940,
deviceScaleRatio: 1,
disabled: false
},
extraHeaders: JSON.stringify({
'x-vercel-protection-bypass': String(process.env.VERCEL_AUTOMATION_BYPASS_SECRET)
})
}
},
upload: {
target: 'temporary-public-storage'
}
}
};