import createNextIntlPlugin from 'next-intl/plugin'; const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts'); const nextConfig = { output: "standalone" as const, images: { qualities: [75, 90, 100], // Image Optimizer cache TTL — keeps optimized variants for 5 min, // matching Nginx max-age. Picks up replaced source files quickly. minimumCacheTTL: 300, formats: ['image/avif', 'image/webp'] as ('image/avif' | 'image/webp')[], }, reactStrictMode: true, serverExternalPackages: ['nodemailer'], experimental: { serverActions: { // 50MB cap — large enough for hero images and CMS uploads, // small enough to limit DoS surface. Use /api/assets for big files. bodySizeLimit: '50mb' as const, }, }, }; export default withNextIntl(nextConfig);