DEV Community

Discussion on: Deploy Netlify Functions with TypeScript

Collapse
 
cvuorinen profile image
Carl Vuorinen

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
Enter fullscreen mode Exit fullscreen mode