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

206
Visualizações
Why is firebase giving me an error on deploy?

I finished my website and wanted to host it for free in firebase, I followed all the steps but it won't work . When I type the command "firebase serve" to see how would my website look before deploying it and it gives me :

404 error

Ps: I don't know if it matters but my website includes 2 html files , 4 css and 1 javascript.

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

0

Check the firebase.json file and make sure the public property is referencing the path correctly.

The public attribute specifies which directory to deploy to Firebase Hosting so it might be the problem in this case:

{
   "hosting": {
   "public": "./dist/your-app",
   "ignore": [
     "firebase.json",
     "**/.*",
     "**/node_modules/**"
   ],
   "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}
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