diff --git a/src/adapter/aws-lambda/handler.ts b/src/adapter/aws-lambda/handler.ts index a8bb83461..b1403aa20 100644 --- a/src/adapter/aws-lambda/handler.ts +++ b/src/adapter/aws-lambda/handler.ts @@ -1,4 +1,3 @@ -import crypto from 'node:crypto' import type { Hono } from '../../hono' import type { Env, Schema } from '../../types' import { decodeBase64, encodeBase64 } from '../../utils/encode' @@ -10,10 +9,6 @@ import type { LambdaContext, } from './types' -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore -globalThis.crypto ??= crypto - export type LambdaEvent = APIGatewayProxyEvent | APIGatewayProxyEventV2 | ALBProxyEvent // When calling HTTP API or Lambda directly through function urls