Generate a .lighthouserc.js config with URL targets and minimum score thresholds for Lighthouse CI runs in your build pipeline.
module.exports = {
ci: {
collect: {
url: [
"https://example.com",
"https://example.com/about"
],
numberOfRuns: 3,
},
assert: {
assertions: {
"categories:performance": ["error", { minScore: 0.9 }],
"categories:accessibility": ["error", { minScore: 0.95 }],
"categories:best-practices": ["warn", { minScore: 0.9 }],
"categories:seo": ["error", { minScore: 0.9 }],
},
},
upload: { target: "temporary-public-storage" },
},
};