I have setup the image domain on next.config.js but the image does not show on localhost. However image is loaded on vercel when code is pushed to production.
On localhost I get the following picture below. Image does not load.
On production, image can be seen
What should I do so that I can see the image on development?
module.exports = {
images: {
domains: [ 'd31wtm2rx76rut.cloudfront.net'],
},
}
<NextImage
src=https://d31wtm2rx76rut.cloudfront.net/1604303981874
alt="Khanna"
layout="fill" />

