.lighthouserc.js 669 B

123456789101112131415161718192021222324252627
  1. "use strict";
  2. module.exports = {
  3. ci: {
  4. collect: {
  5. startServerCommand: "npm run start",
  6. startServerReadyTimeout: 15000,
  7. url: [
  8. "http://localhost:3000/",
  9. "http://localhost:3000/2/",
  10. "http://localhost:3000/2/255",
  11. ],
  12. numberOfRuns: 2,
  13. },
  14. assert: {
  15. assertions: {
  16. "categories:performance": ["warn", { minScore: 0.8 }],
  17. "categories:accessibility": ["warn", { minScore: 0.8 }],
  18. "categories:best-practices": ["warn", { minScore: 0.8 }],
  19. "categories:seo": ["warn", { minScore: 0.8 }],
  20. },
  21. },
  22. upload: {
  23. target: "temporary-public-storage",
  24. },
  25. },
  26. };