Skip to content
Discussion options

You must be logged in to vote

next/image only optimizes images from allow-listed hosts. Add the CMS host to images.remotePatterns in next.config.js with protocol + hostname (host only, no URL/port) and a scoped pathname like /wp-content/uploads/**. Prefer remotePatterns over the legacy domains array, and restart next dev since the config isn't hot-reloaded.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kevinchamplin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant