Rank 2: Process
Do you know how we can do ?
Votes
1
Replies
17
Participants
Unknown
Messages
18
Rank 2: Process
Do you know how we can do ?
why?
Rank 2: Process
I dev locally before upload. So many times, I'm offline. But to deploy function, we need network
Rank 2: Process
If I success deploy one time and that package.json doesn't not change next time, I preferred avoid to reinstall deps
and this is for self-hosted?
Rank 2: Process
For now but After project finish, I will deploy to cloud
how do you deploy?
Rank 2: Process
It's fresh project. I use function to initialize db, collections, ... and test with localhost. After satisfied, I will just change localhost to cloud address and run the functions
Rank 2: Process
It's amazing but run every time function with network slow the process
Consider using something like a local registry
as a proxy
and configure it to cache the packages you need
Rank 2: Process
Nice
Try it, I think it should work
Lmk if it does
Do you need anything else or can this be closed?
Rank 2: Process
[Solved] Cache function deps installation with npm when deployed