Repository navigation
chore: uses images.remotePatterns instead of deprecated domains - #3266
Conversation
WalkthroughThe PR updates Next.js image configuration in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
What's the purpose of this pull request?
In Next.js Version 14, domains configuration has been deprecated in favour of remotePatterns.
How it works?
Migrate from images.domains to images.remotePatterns in
next.config.jsfileHow to test it?
Locally and in the preview deployment, remote images behave the same as before the images.remotePatterns change (load correctly, no regressions).
Starters Deploy Preview
https://sfj-cfc4309--brandless.preview.vtex.app/
PR
References
https://nextjs.org/docs/messages/next-image-unconfigured-host
Summary by CodeRabbit