Dependencies Build Cache does not seem to work
I have a Worker connected to a repository on Github, using a monorepo structure.
The .next/cache build cache is working correctly (build output cache).
However, the dependency build cache (.pnpm-store) does not seem to work properly.
At the beginning of the log, I see that the build restores the dependency cache and the build output:
>> 2025-05-18T14:51:17.844Z Restoring from dependencies cache
>> 2025-05-18T14:51:17.849Z Restoring from build output cache
>> 2025-05-18T14:51:18.163Z Success: Dependencies restored from build cache.
>> 2025-05-18T14:51:18.732Z Success: Build output restored from build cache.
However, the pnpm install time always remains the same, it never decreases. I understand that in the second execution, it should be practically zero (considering that there were no changes):
2025-05-18T14:51:47.886Z Done in 26.4s using pnpm v10.10.0
At the end of the log, I only see the upload of the build output cache. It does not mention anything about dependency cache:
>> 2025-05-18T14:53:10.115Z Success: Deploy command completed
>> 2025-05-18T14:53:10.122Z Uploading to build output cache
>> 2025-05-18T14:53:10.998Z Success: Build output uploaded to build cache.
>> 2025-05-18T14:53:11.057Z ✨ Success! Build completed.
Build Settings:
Build command pnpm cf:build
Deploy command pnpm cf:deploy
Root directory /apps/frontend/landing-page/ (wrangler.jsonc is here)
Watch paths: /apps/frontend/landing-page/*
Environment variables PNPM_VERSION = 10.10.0
1 Reply
Did you find a solution @assincrono ? 🤔 Have a mono-repo and wondering the same/dealing with the same issue now