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

439
Vistas
next.js video import vs reference - what is the next.js way to import videos?

I am adding a video as a background inside of the banner.

I am using next.js and usually with images I would just import them and then pass this import as src (e.g. import img from '@images/about-us-page/img.svg').

Currently when I try doing the same with mp4 video its not displaying the file inside of the files available to be imported. When I use require instead it complains that webpack needs to be configured.

What is the most performence efficent way to import videos? Would that be creating videos dir in public and then just referencing in?

Would reference public for images also be a better solution than importing images?

regards

about 4 years ago · Juan Pablo Isaza
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