Skip to content
New issue

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

Invalid src prop issue with external image hostname not configured in next.config.js #70

Closed
Riya267 opened this issue Aug 8, 2024 · 2 comments · Fixed by #71
Closed

Comments

@Riya267
Copy link
Contributor

Riya267 commented Aug 8, 2024

Description: Encountering an issue with the next/image component in my Next.js project. The error message is:

Screenshot 2024-08-08 at 7 21 25 PM

This error occurs when we try to use an image from the URL https://lh3.googleusercontent.com.

Expected Behavior:

The image should be rendered without any errors if the hostname is correctly configured in the next.config.js file.

Actual Behavior:

An error is thrown indicating that the hostname "lh3.googleusercontent.com" is not configured under images in next.config.js.

@Rudra-Sankha-Sinhamahapatra
Copy link
Contributor

@Riya267 you can close this issue as your PR has been already merged

@Riya267
Copy link
Contributor Author

Riya267 commented Aug 8, 2024

yup closing

@Riya267 Riya267 closed this as completed Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants