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

154
Visualizações
Gatsby Functions: PayloadTooLargeError: request entity too large

I'm building an app with Gatsby and I'm using Gatsby Functions to obfuscate form submissions to a remote API. In this form, the user attaches a file, which can make the request exceed the default size limit of 100KB. There are other answers on StackOverflow which address this question in a node/express environment, however I cannot find how to change the limit using Gatsby.

For example, this is how to increase the limit in express:

app.use(express.json({limit: '50mb'}));
app.use(express.urlencoded({limit: '50mb'}));

How does that translate to Gatsby?

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

0

As of now, there is no way to solve this currently within Gatsby's local development environment. It uses the express.js default request size limit and there is no way to change it. However, this limit can be changed in a production environment and there is a request in to make this limit editable.

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