- Fix: Use sharp for image optimization and offload heavy image resizing to an external service or the Vercel Image Optimization API if your project uses thousands of images.
- Fix: Use npm prune --production or switch to pnpm to keep the dependency footprint small.