added lazy loading for best-efficiency

This commit is contained in:
2026-04-09 15:14:13 +02:00
parent 30c6ff7285
commit 37d27e0bdb
12 changed files with 1228 additions and 278 deletions
+24 -1
View File
@@ -1,7 +1,30 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
/* Image optimization for better performance */
images: {
formats: ["image/avif", "image/webp"],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
minimumCacheTTL: 31536000, // 1 year
dangerouslyAllowSVG: true,
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
},
/* Compression and optimization */
compress: true,
/* Generate static pages early */
reactStrictMode: true,
/* Experimental performance features */
experimental: {
optimizePackageImports: [
"@radix-ui/react-dialog",
"date-fns",
"lodash-es",
],
},
};
export default nextConfig;