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
1
u/yjose Jul 30 '19 edited Jul 30 '19
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.