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

297
Visualizações
Is it possible to get pages from remote file system with next.js

Hi I am quite new to advance frontend technologies and I have simple question.

scenario

I would like to use next.js and its feature: server side rendering. I would like also to have my js, css and html files stored in outside of host machine where next.js is running. I want to have my files in azure blob storage. It is neccessary because I would like to have many SPA pages and single wwwroot directory is not enough for me.

Problem

By default next.js get its files from pages directory at host machine. Is it possible to tell next.js to get files from other file system etc. In this scenario it would be azure storage. I could not find any example or extension point to do that.

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

0

Thank you psygik. Posting your suggestion as an answer to help other community members.

You can only define your page structure in pages directory. After build, Next.js serves the static JS and CSS from .next/static/ folder. Contents of which can be moved to a storage uploaded as _next/static/

You can refer to CDN Support with Asset Prefix, API/next.config.js/CDN Support with Asset Prefix and How to serve static generated pages via CDN with Next.js

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