next.js
bfb8cc7a - chore(docs): mention behavior of redirects and remotePatterns (#91151)

Commit
189 days ago
chore(docs): mention behavior of redirects and remotePatterns (#91151) Some users have been confused by the relationship of `images.remotePatterns` and `images.maximumRedirects` so lets document it. This behavior is expected since you might allowlist something like `https://github.com/styfle.png` and that can redirect to whatever it needs to redirect to (assuming maximumRedirects > 0). For example, it currently redirects to `https://avatars.githubusercontent.com/u/229881?v=4` but you can imagine in the future if the redirect was changed, you wouldn't want your app to break. Regardless of redirects, the final response must be an image. --------- Co-authored-by: Zack Tanner <1939140+ztanner@users.noreply.github.com>
Author
Parents
Loading