optimization
Some checks failed
Deploy MyApp on Same Server / build-and-deploy (push) Failing after 1s
Some checks failed
Deploy MyApp on Same Server / build-and-deploy (push) Failing after 1s
This commit is contained in:
@@ -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 },
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user