Hey Nick,
What I think is happening (but am not 100% sure to be honest) is that netlify dev (written in Node) simulates a function call but does not make a call to an actual AWS function, so regular capabilties of Node like reading from streams work locally… but do not work when deployed, since AWS lambdas does not support streaming responses Sorry to be the bearer of bad news. If you learn otherwise, or if I misunderstood the problem, I would love to know. This thread has more discussion on functions and streams: