Hacker News new | ask | show | jobs
by SpaceNugget 2769 days ago
I think you should just have your boilerplate set up middy with your middleware, that is the point of a boilerplate project after all.

You are depending on your own 'handly' project 'based on' middy but its really just middy without the option to pick what middlewares you want.

your readme for handly says to

  import handly
  const handler = /* a handler */
  export handly(handler)
where handly is essentially

  import middy
  const handly = handler => middy(handler).use(/*a bunch of middleware*/
  export handly
I don't speak for the middy project and I don't know how long you have been developer so I don't want to discourage you too much, but that seemed a little off.

unrelated: I tried to check out your website and got a certificate error.

1 comments

Actually handly is just here to allow a single import on every serverless handler. I haven't worked much on the readme yet, but the idea is to gather all the "mandatory" middy middlewares as well as some middlewares I find necessary into a single dependancy.