dougmoscrop / serverless-http

Use your existing middleware framework (e.g. Express, Koa) in AWS Lambda 🎉
Other
1.71k stars 164 forks source link

Support UInt8Array data in response #232

Closed fastner closed 2 years ago

fastner commented 2 years ago

Next.js 12.1 SSR delivers response data in UInt8Array format. In Node.js both string and UInt8Array are supported in function signature. See https://nodejs.org/dist/latest-v16.x/docs/api/buffer.html#static-method-bufferfrombuffer

With this fix, SSR (via getServerSideProps) is made possible in Next.js standalone mode.