Files
cima.it/frontend/next.config.ts
T
2026-04-10 19:38:15 +02:00

23 lines
601 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* 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,
};
export default nextConfig;