optimization
Some checks failed
Deploy MyApp on Same Server / build-and-deploy (push) Failing after 1s

This commit is contained in:
2025-12-19 23:17:30 +03:30
parent 31b58b7151
commit 618960bb5c
101 changed files with 4812 additions and 2319 deletions

View File

@@ -2,7 +2,24 @@ import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
reactStrictMode: true,
experimental: {},
experimental: {
optimizePackageImports: ['lucide-react', 'chart.js', 'react-chartjs-2'],
},
// Enable compression
compress: true,
// Optimize images
images: {
formats: ['image/avif', 'image/webp'],
deviceSizes: [640, 750, 828, 1080, 1200],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
},
// Performance optimizations
swcMinify: true,
poweredByHeader: false,
// Better mobile experience
compiler: {
removeConsole: process.env.NODE_ENV === 'production',
},
turbopack: { root: __dirname },
}