perf: add web vitals monitoring and optimize performance

This commit is contained in:
张翔
2026-02-13 15:24:51 +08:00
parent 8175c2f035
commit b7e52aa086
3 changed files with 59 additions and 2 deletions
+7
View File
@@ -7,6 +7,13 @@ const nextConfig: NextConfig = {
unoptimized: true,
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
formats: ['image/webp'],
},
compress: true,
poweredByHeader: false,
reactStrictMode: true,
experimental: {
optimizePackageImports: ['lucide-react', 'framer-motion'],
},
};