Use Next.js advanced <Image/> component with the static export functionality. Optimizes all static images in an additional step after the Next.js static export.
RemoteOptimizedImages.js could optionally return a promise that resolves to an array of remote images.
TLDR: I reckon there will be people (other than me) who will fetch these from cms or some different location. Allowing the file to return a promise would allow this functionality.
@Niels-IO Do you want me to PR this or is it easier for you? I am good either way.
RemoteOptimizedImages.js could optionally return a promise that resolves to an array of remote images.
TLDR: I reckon there will be people (other than me) who will fetch these from cms or some different location. Allowing the file to return a promise would allow this functionality.
@Niels-IO Do you want me to PR this or is it easier for you? I am good either way.