News for hackers. Stuff that matters.
Re:Show HN: I made a local development, debugging and hotrel... by xsmasher on Wednesday August 17, 2022 @06:20PM (#32502459)
I always write a remote function as just "an async function that takes type A and returns type B" - then I can write tests for it very easily and run it locally, IF it doesn't use any AWS services like databases.

For deployment I have a generic "wrapper" that makes it lambda-compatible by converting a webEvent -> Json and my outputJSON -> web response event.

There are no comments on this comment yet.