- Added touch-action: manipulation CSS to eliminate 300ms tap delay - Optimized service worker to skip cross-origin requests - Updated viewport settings to prevent iOS delays - Added format-detection meta tag - Enabled Next.js performance optimizations - Created comprehensive performance fix documentation
25 lines
590 B
JavaScript
25 lines
590 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
experimental: {
|
|
optimizePackageImports: ['lucide-react'],
|
|
},
|
|
compiler: {
|
|
removeConsole: process.env.NODE_ENV === 'production' ? {
|
|
exclude: ['error', 'warn'],
|
|
} : false,
|
|
},
|
|
swcMinify: true,
|
|
images: {
|
|
formats: ['image/avif', 'image/webp'],
|
|
},
|
|
compress: true,
|
|
productionBrowserSourceMaps: false,
|
|
trailingSlash: false,
|
|
poweredByHeader: false,
|
|
// Optimize for mobile Safari
|
|
reactStrictMode: true,
|
|
// Enable optimized font loading
|
|
optimizeFonts: true,
|
|
}
|
|
|
|
module.exports = nextConfig |