Is it possible to cache node_modules?

Hey! I'm using pnpm as the package manager and it takes nearly ~2 minutes to on every build to install the packages. Is it possible to cache node_modules on Railway?
7 Replies
Percy
Percy2y ago
Project ID: N/A
Mukesh
MukeshOP2y ago
N/A
Percy
Percy2y ago
⚠️ experimental feature
milo
milo2y ago
u probablydont want to if dependencies change and node_modules is cached we cant know when to update
Mukesh
MukeshOP2y ago
makes sense, in nixpack's docs site it says that the build is cached in the root directories (https://nixpacks.com/docs/providers/node#caching) and the final image is pretty large as well. I don't think so the final image must be this large for a medium sized express application
Node | Nixpacks
App source + Nix packages + Docker = Image
milo
milo2y ago
hmm
eirk
eirk2y ago
Isn’t this bc of Ubuntu size
Want results from more Discord servers?
Add your server