Some checks failed
Deploy MyApp on Same Server / build-and-deploy (push) Failing after 1s
27 lines
666 B
TypeScript
27 lines
666 B
TypeScript
import type { NextConfig } from 'next'
|
|
|
|
const nextConfig: NextConfig = {
|
|
reactStrictMode: true,
|
|
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 },
|
|
}
|
|
|
|
export default nextConfig
|