Files
Todo/next.config.js
Paul Bailey 509de75e1a Fix Safari/iPhone performance issues - remove 300ms click delay
- 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
2025-12-03 20:54:55 +00:00

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