feat: optimize performance and SEO, integrate Lighthouse CI

- Integrated imgproxy for centralized image optimization
- Implemented Lighthouse CI in Gitea pipeline with native Chromium
- Reached 100/100 SEO score by fixing canonicals, hreflang, and link text
- Optimized LCP by forcing Hero component visibility until hydration
- Decoupled analytics into an async shell to reduce TTI
This commit is contained in:
2026-02-18 10:01:00 +01:00
parent d93b453d53
commit 9e9bc9d3aa
24 changed files with 413 additions and 56 deletions

View File

@@ -317,17 +317,8 @@ const nextConfig = {
];
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'klz-cables.com',
port: '',
pathname: '/wp-content/uploads/**',
},
],
dangerouslyAllowSVG: true,
contentDispositionType: 'attachment',
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
loader: 'custom',
loaderFile: './lib/imgproxy-loader.ts',
},
async rewrites() {
const umamiUrl =