File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 1- import awsLambdaFastify , { LambdaResponse } from "@fastify/aws-lambda" ;
1+ import awsLambdaFastify from "@fastify/aws-lambda" ;
22import init from "./index.js" ;
3- import warmer from "lambda-warmer" ;
43import { type APIGatewayEvent , type Context } from "aws-lambda" ;
54import { InternalServerError , ValidationError } from "common/errors/index.js" ;
65
@@ -11,10 +10,6 @@ const realHandler = awsLambdaFastify(app, {
1110 callbackWaitsForEmptyEventLoop : false ,
1211} ) ;
1312const handler = async ( event : APIGatewayEvent , context : Context ) => {
14- // if a warming event
15- if ( await warmer ( event , { correlationId : context . awsRequestId } , context ) ) {
16- return "warmed" ;
17- }
1813 if ( process . env . ORIGIN_VERIFY_KEY ) {
1914 // check that the request has the right header (coming from cloudfront)
2015 if (
You can’t perform that action at this time.
0 commit comments