Home
Support Forums

Behavior of serverless functions and downloads

I am testing out serverless functions and one thing I noticed when testing locally with “netlify dev” was that I was able to download a file via the function and store it locally within the project. My understanding of the functions is that they don’t have dedicated storage, etc associated with them so what would the behavior be in production?

Are downloaded files only kept temporarily in an instance during function execution? Just trying to understand the behavior.

Yes, they’d be downloaded and stored as long as the function is running. As soon as the final return statement fires, the data is lost.

Makes sense, thanks.