Skip to content

Commit 48f6b7c

Browse files
committed
remove imports
1 parent 59253f6 commit 48f6b7c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/api/lambda.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import awsLambdaFastify, { LambdaResponse } from "@fastify/aws-lambda";
1+
import awsLambdaFastify from "@fastify/aws-lambda";
22
import init from "./index.js";
3-
import warmer from "lambda-warmer";
43
import { type APIGatewayEvent, type Context } from "aws-lambda";
54
import { InternalServerError, ValidationError } from "common/errors/index.js";
65

@@ -11,10 +10,6 @@ const realHandler = awsLambdaFastify(app, {
1110
callbackWaitsForEmptyEventLoop: false,
1211
});
1312
const 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 (

0 commit comments

Comments
 (0)