Skip to content

Commit

Permalink
#56 Allow an API route to return binary data (#57)
Browse files Browse the repository at this point in the history
* #56 Allow an API route to return binary data by not hardcoding the response as non-binary.

* Set binary mode to be true
  • Loading branch information
john-tipper committed Nov 23, 2022
1 parent 93ac78c commit c8a66a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/standalone/server-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const server = slsHttp(
},
{
// We have separate function for handling images. Assets are handled by S3.
binary: false,
binary: true,
provider: 'aws',
basePath: process.env.NEXTJS_LAMBDA_BASE_PATH,
},
Expand Down

0 comments on commit c8a66a4

Please sign in to comment.