Increase Function Payload Limit #35084
-
Preliminary Checks
DescriptionWhen creating an API/handler through Gatsby Functions, the handler is limited to requests under 100KB in size, as it uses the default express.js limit. This limit cannot be changed on the dev server, but it should be editable. Reproduction Linkhttps://github.com/agonsalves/gatsby-bug-repro Steps to Reproduce
Expected ResultThe request shouldn't result in an error - as long as the request limit was high enough. However, there is no way to change the limit on the development server. Actual ResultERROR: PayloadTooLargeError: request entity too large EnvironmentSystem:
OS: macOS 12.1
CPU: (10) arm64 Apple M1 Pro
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.14.0 - /opt/homebrew/bin/node
Yarn: 1.22.17 - /opt/homebrew/bin/yarn
npm: 8.3.1 - /opt/homebrew/bin/npm
Languages:
Python: 2.7.18 - /usr/bin/python
Browsers:
Chrome: 99.0.4844.51
Safari: 15.2
npmPackages:
gatsby: ^4.9.2 => 4.9.2
npmGlobalPackages:
gatsby: 4.9.1 Config FlagsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
cc @EzraEllette as you said you'll be working on this |
Beta Was this translation helpful? Give feedback.
-
@EzraEllette is working on this at the moment |
Beta Was this translation helpful? Give feedback.
-
Hi, @LekoArts Do we have any expected release timeline for this ? |
Beta Was this translation helpful? Give feedback.
Hi, @LekoArts Do we have any expected release timeline for this ?