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

189
Vistas
React router interfere with package.json homepage when deployed on github pages

I am using react router dom with react and deployed on github pages. My problem is that package.json requires settings to build the github link followed by the / and the name of the repo or project.

{
  "name": "self-destructed-messages",
  "homepage": "http://username.github.io/self-destructed-messages/",
  "version": "0.1.0",

I tried with https also and the pages, even the localhost is redirecting me to the error not found page

const RouterConfig = () => {
  return (
    <div>
        <Routes>

                <Route exact path='/' element={<Home />} />
                <Route path='/created-message/:string' element={<CreatedMessages />} />
                <Route path='/get-message/:string' element={<GetMessage />} />
                <Route path='*' element={<NotFounded />} />


        </Routes>
    </div>
  )
}

When I open the github pages it goes automatically to the 404 page (NotFounded). If I am using the / only, I get the github official 404...

I dont know what else to try. Can please have some help? Thanks, Daniel

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