How do install dependencies in the tmp directory?

The /tmp directory in a Serverless Function has a limit of 512 MB.

However, a better solution is to upload files directly from the client to the S3 bucket using a presigned url.

Then you don’t need to proxy the function req body or write temporary files at all.

1 Like