continuedev/netlify-lighthouse icon
public
Published on 9/24/2025
Performance Budget Enforcement with Lighthouse CI

Prompts

Set up Lighthouse CI with performance budgets for my Netlify site:

Requirements:

  • LCP must be < 2.5 seconds
  • JavaScript bundle must be < 200KB
  • Total size < 500KB
  • Performance score >= 90

Setup needed:

  1. Install @lhci/cli and @netlify/plugin-lighthouse
  2. Create lighthouserc.js with these budget assertions
  3. Configure netlify.toml to run checks on all deploys
  4. Add GitHub status checks to block PRs that exceed budgets
  5. Create performance dashboard at /lighthouse-reports

Please configure the complete Lighthouse CI setup with these budgets.