Migrating Next.js Image Domains to Remote Patterns

flock of birds flying under blue sky during daytime

Optimizing image handling in a Next.js application is crucial for performance and user experience. Next.js provides a built-in Image Optimization API that automatically optimizes images on-demand for faster load times. However, the way we specify which external domains are allowed to serve images has changed. The older images.domains configuration has been deprecated in favor of

Optimizing Next.js Docker Images for Production

A cup of coffee sitting on top of a kitchen counter

Optimizing Docker images is crucial for creating efficient and manageable applications. As a developer, I’ve found that even small tweaks can significantly improve performance and reduce costs. In this guide, I’ll walk you through how I optimized my Next.js Docker images to be as small and efficient as possible. We’ll cover evaluating current image sizes,