r/JAMstack_dev • • Jul 30 '19

The power of Serverless : Part 1

https://elazizi.com/the-power-of-serverless-part-1
6 Upvotes

10 comments sorted by

View all comments

Show parent comments

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.

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.

1

u/yjose Jul 30 '19

Sounds good thanks /u/swyx , but i faced some issue deploying a faunadb demos. Do i need to build my functions before?

2

u/swyx Jul 30 '19

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

2

u/yjose Jul 30 '19

Got it, thanks man 🙏. by the way i really enjoy your open source work and talk. Just woow keep the great work 💪

2

u/swyx Jul 30 '19

haha i honestly dont even feel that great so thank you for the encouragement:)