feat(performance): optimize Core Web Vitals with CSS animations and lazy analytics

- Replace framer-motion with CSS animations in TrustBadges, AsSeenIn, ProblemSection
- Create AnalyticsProvider client component for OpenPanel lazy-loading
- Fix HeroVideo CLS with explicit aspect-ratio (4/3)
- Remove deprecated swcMinify from next.config (enabled by default)
- Add optimizePackageImports for better tree-shaking
This commit is contained in:
Unchained
2026-04-01 06:14:49 +02:00
parent ad20ffe588
commit 27af03ba3a
7 changed files with 122 additions and 106 deletions

View File

@@ -69,7 +69,7 @@ const nextConfig: NextConfig = {
],
},
experimental: {
optimizePackageImports: ["lucide-react", "framer-motion"],
optimizePackageImports: ["lucide-react", "framer-motion", "clsx", "motion"],
},
};