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

161
Visualizações
Does next.js fetch the entire app when the first request is made?

From what I've read online it sounds like Nextjs uses client side routing which means that on the first request, every page will be fetched from the server, and then on subsequent requests, those pages get rendered on the browser without needing to talk to the server. My question though is, where are these pages on my browser? I can only see my login page under the chrome sources tab, but I also have a signup and dashboard page that I don't see anywhere. enter image description here

And secondly, if nextjs is using client side routing, does that mean none of my server routes should serve webpages, but rather it should just be acting as an api for working with data? Except for possibly one route, which can serve the initial request?

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

0

My question though is, where are these pages on my browser? I can only see my login page under the chrome sources tab, but I also have a signup and dashboard page that I don't see anywhere.

Since you are in development mode, the chunks will only be processed and sent to the browser when you are navigating - If you use a dynamic import and in production mode you will see it on route change.

And secondly, if nextjs is using client side routing, does that mean none of my server routes should serve webpages, but rather it should just be acting as an api for working with data? Except for possibly one route, which can serve the initial request?

For this topic, i would ask that you review Pre-rendering and how it works and familiarize yourself with SSG and SSR - https://nextjs.org/docs/basic-features/pages

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