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
Project ID:
N/A
N/A
⚠️ experimental feature
u probablydont want to
if dependencies change and node_modules is cached we cant know when to update
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
hmm
Isn’t this bc of Ubuntu size