What is the size limit of variables passed to server functions?
Been trying to upload some images via server functions and every so often hit a 413 - Request Entity Too Large error. Would this be a limitation of serverFunctions, nitro or vercel?
7 Replies
rare-sapphire•8mo ago
If the request is registered by Tanstack Start (you can check the logs) then likely Nitro. If it's not then it's blocked either by CDN or Vercel's proxy
foreign-sapphireOP•8mo ago
Any way to up the limits in config?
foreign-sapphireOP•8mo ago
How to Bypass the 4.5MB Payload Limit of Serverless Functions
Learn how to work with the 4.5MB body size limit of Vercel Serverless Functions by either directly requesting from or uploading to the source.
rare-sapphire•8mo ago
Yup
But also if it's just for file uploading it might be a good idea to consider something like AWS S3 or DigitalOcean spaces, for uploading big files.
absent-sapphire•8mo ago
@sh03 How to build TansStack Start for AWS s3?
rare-sapphire•8mo ago
S3 is not specific to Tanstack Start. Just follow any Node AWS S3 tutorial and you'll be fine
absent-sapphire•8mo ago
The output of the TanStack build is not aligned with my expectation of a static Web Hosting
Do you mean TanStack will always require a server to run?
nevermind