Created
February 19, 2022 02:30
-
-
Save lucatsf/500f1f5808ed2174a9deac4ca1898c98 to your computer and use it in GitHub Desktop.
Error: Invalid src prop on `next/image`, hostname
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nextConfig = { | |
reactStrictMode: true, | |
} | |
module.exports = nextConfig | |
module.exports = { | |
images: { | |
domains: ['enter the domain of your image'], | |
formats: ['image/avif', 'image/webp'], | |
}, | |
} | |
//if you need several domains, enter them in the array with commas | |
//domains: ['github.com', 'vercel.com', 'google.com'], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment