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

100
Vistas
Relative path in dev incorrectly translated in staging

I have this situation in React that in development I point to a logo in footer with a relative path wchich is:

import logo from "../../public/assets/images/logo-white.svg";

And this path is not working on the staging server, after debugging i found out that the assets part is missing in the path, in devtools the path is:

/images/logo-white.svg?49346bf607b2345c88562df1dde21b97

when I add the assets part before slash it works, I cannot use absolute path in component and I don't know what can I do to fix it.

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

0

You could use it like this for production: process.env.PUBLIC_URL + '/images/logo-white.svg'

You can find the detailed documentation on when and how to use the public folder in the React docs

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