Skip to content

Commit

Permalink
chore: Add page to lighthouse CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroWave022 committed Oct 27, 2024
1 parent d3cc9a7 commit 0ea7d99
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion lighthouserc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const PAGES_EXCLUDED = ['news', 'storage'];
const PAGES_EXCLUDED = ['news', 'events', 'storage'];

// Do not convert into an ES6 export.
// lighthouse-ci (as of 0.14.0) uses require() to import, and this is not supported with ES6 modules.
Expand All @@ -9,6 +9,7 @@ module.exports = {
'http://localhost:3000/en/', // Trailing slash required, else the regex for default lighthouse rules won't catch this one
'http://localhost:3000/en/about',
'http://localhost:3000/en/events',
'http://localhost:3000/en/events/1',
'http://localhost:3000/en/news',
'http://localhost:3000/en/news/1',
'http://localhost:3000/en/storage',
Expand Down Expand Up @@ -60,6 +61,18 @@ module.exports = {
'max-potential-fid': 'off',
},
},
{
matchingUrlPattern: 'http://.*/en/events',
preset: 'lighthouse:recommended',
assertions: {
'bf-cache': 'off',
'color-contrast': 'off',
'heading-order': 'off',
'largest-contentful-paint': 'off',
'render-blocking-resources': 'off',
'uses-responsive-images': 'off'
},
}
],
},
},
Expand Down

0 comments on commit 0ea7d99

Please sign in to comment.