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

Docs: Unnecessary fiels that causes error on next/image Un-configured Host #74188

Open
mibijoy007 opened this issue Dec 20, 2024 · 0 comments
Open
Labels
Documentation Related to Next.js' official documentation.

Comments

@mibijoy007
Copy link

mibijoy007 commented Dec 20, 2024

Is this happening on only because I'm on nextjs 14?

When trying to get image from outside source I'm facing this issue :

Error: Invalid src prop (https://image-link) on next/image, hostname "imge-link" is not configured under images in your next.config.js

What is the documentation issue?

module.exports = {
  images: {
    remotePatterns: [
      {
        protocol: 'https',
        hostname: 'assets.example.com',
        port: '',
        pathname: '/account123/**',
        search: '',
      },
    ],
  },
}

This was in the page Documentation page.

But in remotePatterns the search and port doesn't exist. If i remove this two then the error is gone!

Is there any context that might help us understand?

When trying to get image from outside source I'm facing this issue :

Error: Invalid src prop (https://image-link) on next/image, hostname "imge-link" is not configured under images in your next.config.js

See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host

Does the docs page already exist? Please link to it.

https://nextjs.org/docs/messages/next-image-unconfigured-host

@mibijoy007 mibijoy007 added the Documentation Related to Next.js' official documentation. label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Related to Next.js' official documentation.
Projects
None yet
Development

No branches or pull requests

1 participant