Function
createContext
({
event,
context,
}: CreateAWSLambdaContextOptions<APIGatewayProxyEventV2>)
Source from the content-addressed store, hash-verified
| 15 | // move to Cloudflare when this is complete https://github.com/prisma/prisma/issues/15265 |
| 16 | |
| 17 | function createContext({ |
| 18 | event, |
| 19 | context, |
| 20 | }: CreateAWSLambdaContextOptions<APIGatewayProxyEventV2>): Context { |
| 21 | const user = getUser(event.headers.authorization) |
| 22 | return { |
| 23 | user, |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | export const handler = awsLambdaRequestHandler({ |
| 28 | router: appRouter, |
Callers
nothing calls this directly
Tested by
no test coverage detected