diff --git a/next.config.ts b/next.config.ts index 9aa07dd..a49252d 100644 --- a/next.config.ts +++ b/next.config.ts @@ -9,6 +9,53 @@ const nextConfig: NextConfig = { { protocol: 'https', hostname: 'vumbnail.com' }, { protocol: 'https', hostname: 'images.unsplash.com' }, ], + formats: ['image/avif', 'image/webp'], + }, + experimental: { + optimizePackageImports: ['lucide-react', 'radix-ui'], + serverMinification: true, + }, + poweredByHeader: false, + compress: true, + async headers() { + return [ + { + source: '/_next/static/:path*', + headers: [ + { + key: 'Cache-Control', + value: 'public, max-age=31536000, immutable', + }, + ], + }, + { + source: '/images/:path*', + headers: [ + { + key: 'Cache-Control', + value: 'public, max-age=2592000', + }, + ], + }, + { + source: '/:path*.ico', + headers: [ + { + key: 'Cache-Control', + value: 'public, max-age=604800', + }, + ], + }, + { + source: '/:path*.svg', + headers: [ + { + key: 'Cache-Control', + value: 'public, max-age=2592000', + }, + ], + }, + ]; }, }; diff --git a/package.json b/package.json index 4ad52a5..c9b91a4 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,6 @@ "nodemailer": "^8.0.1", "pg": "^8.18.0", "prisma": "^7.3.0", - "radix-ui": "^1.4.3", "react": "19.2.3", "react-dom": "19.2.3", "react-window": "^2.2.7",