Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

200
Vistas
Invalid src prop in Nextjs Image tag
<Image
  src={"http://localhost:3000/images/img.jpeg"}
  layout="fill"
  objectFit="cover"
  width={"100%"}
  height={"100%"}
/>

The error is :

enter image description here

How do I solve ?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The error says that, the url that you are using for the Image is not from a trusted hostname(domain). You just need to add that hostname or domain inside your next.config.js file. Follow the following steps :

  1. Create a next.config.js file inside your root directory.
  2. Add the following code inside your next.config.js file.
module.exports = {
  images: {
    domains: ['assets.example.com'],
  },
}

This must solve your problem. For more details you can read more on this page : next.config.js

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda