/** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, swcMinify: true, // Configure cache busting with build ID generateBuildId: async () => { return process.env.BUILD_ID || `build-${Date.now()}` }, images: { domains: [], formats: ['image/avif', 'image/webp'], deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840], imageSizes: [16, 32, 48, 64, 96, 128, 256, 384], }, experimental: { optimizePackageImports: ['lucide-react', '@react-three/fiber', '@react-three/drei'], }, webpack: (config, { isServer }) => { if (!isServer) { // Optimize bundle splitting config.optimization.splitChunks = { chunks: 'all', cacheGroups: { default: false, vendors: false, framework: { name: 'framework', chunks: 'all', test: /(?