Adapter AWS Lambda

Deploy tRPC on AWS Lambda with awsLambdaRequestHandler() from @trpc/server/adapters/aws-lambda for API Gateway v1 (REST, APIGatewayProxyEvent) and v2 (HTTP, APIGatewayProxyEventV2), and Lambda Function URLs. Enable response streaming with awsLambdaStreamingRequestHandler() wrapped in awslambda.streamifyResponse(). CreateAWSLambdaContextOptions provides event and context for context creation.

trpc bf36cc0 5.4 KB Updated

File contents

trpc/trpc/tree/main/packages/server/skills/adapter-aws-lambda commit bf36cc08ab

Frequently asked questions

npx skillmds add trpc/adapter-aws-lambda