Thanks, nice tutorial. That .babelrc with targets node:true made it work (the example given in netlify-lambda README did not work for me without adding that).
Also, the redirect trick was nice, haven't used Netlify redirects before. But I changed it a little bit since I have a project with multiple functions:
[[redirects]]
from = "/*"
to = "/.netlify/functions/:splat"
status = 200
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks, nice tutorial. That .babelrc with
targets node:true
made it work (the example given in netlify-lambda README did not work for me without adding that).Also, the redirect trick was nice, haven't used Netlify redirects before. But I changed it a little bit since I have a project with multiple functions: