Closed sladg closed 1 year ago
Consider following scenario:
next.config.js allows us to specify domains allowed.
next.config.js
Image lambda should check if URL is absolute or relative. If relative, use internal S3 bucket, if absolute, fetch remote image.
As of version v4 handler can be used to fetch and optimise any image. Remote images as well as single S3 bucket origin are supported.
Consider following scenario:
next.config.js
allows us to specify domains allowed.Image lambda should check if URL is absolute or relative. If relative, use internal S3 bucket, if absolute, fetch remote image.