Skip to content

Commit

Permalink
fix: sets seo for warn issues when not in production
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofanny committed Oct 1, 2024
1 parent 7f082b4 commit ecb5613
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/lighthouse/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ const lhConfig = ({ urls, server, assertions = {} }: Params) => {
assert: {
preset: 'lighthouse:no-pwa',
assertions: {
// Final Ligthouse score Budgets
// Final Lighthouse score Budgets
'categories:accessibility': ['error', { minScore: 1 }],
'categories:best-practices': ['error', { minScore: 1 }],
'categories:performance': ['error', { minScore: 0.95 }],
'categories:seo': ['error', { minScore: 1 }],
'categories:seo':
process.env.NODE_ENV !== 'production'
? ['error', { minScore: 1 }]
: ['warn', { minScore: 1 }],
'categories:pwa': 'off',

// Lighthouse Metrics Budgets
Expand Down

0 comments on commit ecb5613

Please sign in to comment.