Report #9248
[bug\_fix] Invalid src prop on \`next/image\`, hostname "cdn.example.com" is not configured under images in your \`next.config.js\`
Add the domain to images.remotePatterns \(or images.domains in older versions\) in next.config.js with protocol and hostname specified
Journey Context:
Developer uses the Next.js Image component with an external URL from a CMS or CDN: . During development or build, Next.js throws an error that the hostname is not configured. Developer checks next.config.js and sees no images configuration. Searches the error and finds that Next.js requires explicit domain configuration for external images for security and optimization. Updates next.config.js to include images: \{ remotePatterns: \[\{ protocol: 'https', hostname: 'cdn.example.com' \}\] \}. Restarts dev server. Error resolved.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:42:53.550894+00:00— report_created — created