Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

372
Visualizações
GitHub pages not loading js or css

I know this has been asked many times, but I can't find an answer that works.

I'm making a site (https://tallerthanshort.github.io/bottom.gg) and it won't load any of the js (some reactjs) or css.

All the files can be found on the Github repo (https://github.com/TallerThanShort/bottom.gg) and all of it works when running the site locally (either by simply opening the html file or running a local server), but the GitHub pages site simply returns a 404 for every file.

I have changed all of my script tags so they have an opening and closing tag, and also removed the initial / from /_next/ so that Github pages doesn't look at the wrong repo, but it still hasn't fixed my issue.

Any help would be largely appreciated.

Edit: I found that having all the files in the same location as the root html file works, but I want to link separate folders and separate files to make things neater.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I am not sure but try these 2 options:

  1. <link href='/_next'> instead of <link href='_next'/>

  2. <link rel="stylesheet" href="%PUBLIC_URL%/*here your pathh*" />

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda