We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
next/image
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
When completing the Fetching data for part of chapter 7 I am getting the following error:
Error: Invalid src prop (https://picsum.photos/id/64/100/100) on next/image, hostname "picsum.photos" is not configured under images in your next.config.js See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host at Array.map () { digest: '2506496770'
next.config.js
I've changed my next.config.ts and included the images config like so :
import type { NextConfig } from "next"; const nextConfig: NextConfig = { images: { remotePatterns: [ { protocol: "https", hostname: "picsum.photos", port: "", pathname: "/id/**", search: "", }, ], }, }; export default nextConfig;
This worked for me. If this is correct can you please include it in the repo so that other people do not experience the same issue.
Thank you!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
When completing the Fetching data for part of chapter 7 I am getting the following error:
Error: Invalid src prop (https://picsum.photos/id/64/100/100) on
next/image
, hostname "picsum.photos" is not configured under images in yournext.config.js
See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host
at Array.map () {
digest: '2506496770'
I've changed my next.config.ts and included the images config like so :
This worked for me.
If this is correct can you please include it in the repo so that other people do not experience the same issue.
Thank you!
The text was updated successfully, but these errors were encountered: