now-deno icon indicating copy to clipboard operation
now-deno copied to clipboard

Support request and response objects

Open rodrigorm opened this issue 4 years ago • 4 comments

Following the docs on Vercel (https://vercel.com/docs/runtimes#official-runtimes/node-js) the Node runtimes first use the req/res handler style and support changes to AWS style with configuration, eg: NODEJS_AWS_HANDLER_NAME.

It would be nice if now-deno supports the same APIs style.

rodrigorm avatar May 14 '20 02:05 rodrigorm

I'd like to work on this, but I need to learn how now-deno works internally. 🤔

grikomsn avatar May 17 '20 15:05 grikomsn

Until I know how this builder works, here's a wrapper to create @vercel/node like functions: https://github.com/grikomsn/deno-create-now-fn

grikomsn avatar May 17 '20 19:05 grikomsn

@grikomsn If you want you can add this code to this repo and document it in the README :-)

lucacasonato avatar Jun 15 '20 13:06 lucacasonato

I'm still new to Vercel builders. Any pointers on where can I add/modify parts of the code?

grikomsn avatar Jun 15 '20 13:06 grikomsn