#[Solved] Cache function deps installation with npm when deployed

17 messages · Page 1 of 1 (latest)

worn sluice
#

Do you know how we can do ?

gentle compass
worn sluice
#

I dev locally before upload. So many times, I'm offline. But to deploy function, we need network

worn sluice
# gentle compass why?

If I success deploy one time and that package.json doesn't not change next time, I preferred avoid to reinstall deps

gentle compass
worn sluice
#

For now but After project finish, I will deploy to cloud

worn sluice
#

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

worn sluice
lapis summit
#

Consider using something like a local registry

#

as a proxy

#

and configure it to cache the packages you need

lapis summit
#

Lmk if it does

gentle compass