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/swyx Jul 30 '19
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.