perf: optimize PageSpeed Insights performance

- Suppress browser source map references to fix 404/SyntaxErrors
- Reduce legacy JS polyfills via browserslist config
- Optimize LCP by refining Hero animations and image sizes
- Implement video lazy loading and reduce SVG animation complexity
- Add preconnect hints for critical origins
This commit is contained in:
2026-02-19 23:21:01 +01:00
parent 0dd47491f0
commit f0547fbf8a
7 changed files with 40 additions and 21 deletions

View File

@@ -8,6 +8,7 @@ const nextConfig = {
// Make sure entries are not disposed too quickly
maxInactiveAge: 60 * 1000,
},
productionBrowserSourceMaps: false,
logging: {
fetches: {
fullUrl: true,
@@ -353,4 +354,6 @@ const nextConfig = {
},
};
export default withMintelConfig(nextConfig);
export default withMintelConfig(nextConfig, {
hideSourceMaps: true,
});