Error: Invalid src prop (https://cdn.myapp.com/banner.jpg) on `next/image`,
hostname "cdn.myapp.com" is not configured under images in your next.config.js
You ship a product page. Every image 404s. The host's remotePatterns allowlists the CDN. The Products remote does not.
In a hybrid Next.js micro frontend, every Next.js app has its own images block, every block has its own allowlist, and a missed entry only surfaces on the specific remote that needed it.
The full guide covers:
-
remotePatternsmirrored across host + every Next.js remote (and why) -
Local vs production configs: the single
http://localhostline that must NEVER ship -
enableImageLoaderFixinNextFederationPlugin— the one-line fix for static images inside federated remotes - AVIF + WebP format negotiation with real payload comparisons (180 KB → 61 KB, 66% smaller)
-
deviceSizes+imageSizestuning for your real rendered widths -
minimumCacheTTLtrade-offs during active deploys - The complete
<Image>props guide:fill,sizes,priority,placeholder="blur",quality - Eight production gotchas (with the actual error messages and fixes)
Read the full guide with code examples → https://blog.srinudesetti.in/micro-frontend/nextjs/image-optimization-nextjs-micro-frontend
(Article includes complete next.config.js blocks for host + Products remote + Content remote, request-flow diagram, AVIF/WebP payload comparison, and decision tables for local vs production.)

Top comments (0)