ExtraTypical
Deno.serve with aws-lambda-adapter
Here's the code that works:
const ac = new AbortController();
Deno.serve(
{
port: 8000,
hostname: "127.0.0.1",
signal: ac.signal,
// onError: (err) => {}
},
(req: Request) => router(req),
);
The router() function of course is something you can change into whatever you want to handle the event.
3 replies