Fix runtime errors: PerformanceObserver, localStorage, crypto.randomUUID, hydration issues, and linting errors

This commit is contained in:
2026-01-10 16:54:28 +01:00
parent ca2ed13446
commit a980ee8fcd
8 changed files with 22 additions and 23 deletions

View File

@@ -38,7 +38,8 @@ export async function GET(request: NextRequest) {
cls: ((p.performance as Record<string, unknown>)?.coreWebVitals as Record<string, unknown>)?.cls as number || 0
}));
const avgLighthouse = projectsWithPerformance.length > 0
// Calculate average lighthouse score (currently unused but kept for future use)
const _avgLighthouse = projectsWithPerformance.length > 0
? Math.round(projectsWithPerformance.reduce((sum, p) => sum + p.lighthouse, 0) / projectsWithPerformance.length)
: 0;