diff --git a/src/runtime/entries/aws-lambda.ts b/src/runtime/entries/aws-lambda.ts index f906d6d85e..6c291d5a06 100644 --- a/src/runtime/entries/aws-lambda.ts +++ b/src/runtime/entries/aws-lambda.ts @@ -52,7 +52,9 @@ export async function handler( headers: normalizeLambdaIncomingHeaders(event.headers), method, query, - body: event.body, // TODO: handle event.isBase64Encoded + body: event.isBase64Encoded + ? Buffer.from(event.body, "base64").toString("utf8") + : event.body, }); // ApiGateway v2 https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html#http-api-develop-integrations-lambda.v2