Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Dec 17, 2023
1 parent a54852f commit 438ae9d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/adapter/aws-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ import { type RequestHandler } from "../main.js";
export const awsLambda =
(handler: RequestHandler): LambdaFunctionURLHandler =>
async (request) => {
console.log(request.requestContext.http);
console.log(JSON.stringify(request, null, 2));

Check failure on line 13 in src/adapter/aws-lambda.ts

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
const url = new URL("http://localhost");

url.pathname = request.rawPath;
url.hostname = request.requestContext.domainName;

const response = await handler(
new Request(new URL(request.requestContext.http.path), {
new Request(url, {
body: request.body,
headers: new Headers(filterValues(request.headers, isString)),
method: request.requestContext.http.method,
Expand Down

0 comments on commit 438ae9d

Please sign in to comment.