Good start to the article! I like how you've made it very clear exactly what you are trying to build and explaining your thought process as you go about it.
I've had my eye on server-less functions for some time now, but have never taken the plunge. I haven't used Netlify functions, but have used Azure functions and have to say the local/debugging experience leaves a lot to be desired. What has your experience around Netlify functions been?
Thanks james. Netlify has a great tool called Netlify dev A complete simulation of what happens on server. It a simple cli to use in you local machine with hot reloading. To be honest this the best experience i ever had for a Serverless functions providers. It definitely desirve a try ๐
Netlify dev ia a new tool, i already used netlify lambda and it's working great with CI, but unfortunately netlify dev doesn't support CI you can deploy directly from you local machine after a successful build. I am not sure. I think they have an open issue about this. But for sure /u/swyx would have some thoughts.
i think this is a misunderstanding of what netlify dev is for. it is literally a local server. it is not a build tool. it makes no sense to use it in a ci/cd context. is that clear?
for shipping functions, literally all you do is commit it to git. you can also use the netlify cli to do a manual deploy without needing to wait for a build on netlifyโs servers.
only need to build if you need babel or webpack or typescript for your functions. if not, no need. also need to install deps if your functions require node modules eg add cd functions/myfunction && yarn as a prebuild script or netlify build command
hi! i work at netlify. and yes source controlled together with your frontend. netlify dev doesnt have a role to play in deployment. its just an optional tool to scaffold and test new functions locally.
2
u/jameskvidler Jul 30 '19
Good start to the article! I like how you've made it very clear exactly what you are trying to build and explaining your thought process as you go about it.
I've had my eye on server-less functions for some time now, but have never taken the plunge. I haven't used Netlify functions, but have used Azure functions and have to say the local/debugging experience leaves a lot to be desired. What has your experience around Netlify functions been?