next.js
f8fe70dd - chore: refactor image optimization to separate external/internal urls (#61172)

Commit
1 year ago
chore: refactor image optimization to separate external/internal urls (#61172) This PR is refactoring only and doesn't change the logic, therefore no tests were added. The improvement here is readability: - separate functions to fetch external vs internal image (in the future, we could improve perf of internal image routing) - types of the arguments are more specific (rather than passing in complete NextConfig) > Note: Its easier to review with whitespace hidden: https://github.com/vercel/next.js/pull/61172/files?w=1
Author
Committer
Parents
Loading