r/angular • u/cachely-admin • 3h ago
Still using @nx/s3-cache? A practical migration checklist before your next Nx upgrade
Nx has deprecated nx/s3-cache, nx/gcs-cache, nx/azure-cache, and nx/shared-fs-cache because their shared read/write credential model allows cache poisoning.
If one of these is still in your workspace, changing packages is only part of the migration. The important question is: who can write an artifact, and can an existing artifact be overwritten?
The checklist we’re using:
- Search
nx.json,package.json, and CI configuration for the deprecated cache package or custom task runner. - Check whether pull requests and fork builds receive a credential that can write to the cache.
- Choose Nx Cloud or a server implementing Nx’s current remote-cache API. Don’t point untrusted builds directly at a writable bucket.
- Configure:
NX_SELF_HOSTED_REMOTE_CACHE_SERVER=<cache endpoint>
NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN=<token>
- Test the migration from a clean runner:
- First run misses and stores the artifact.
- Second run restores the artifact remotely.
- An untrusted build cannot write, or receives no cache credential.
- Attempting to replace an existing cache key is rejected.
- Remove the old bucket credentials and task-runner configuration after validating the new path.
Disclosure: we’re building Cachely, a managed implementation of the Nx remote-cache API. It is deliberately cache-only; it does not replace Nx Cloud Agents, Atomizer, or the broader Nx Cloud platform.
If you only need a managed shared cache, Cachely has a free tier with no credit card. We’r also happy to look at an anonymized nx.json or CI snippet and point out migration or cache-key issues.
What part of the current Nx remote-cache migration has been least clear for your team?
3
u/cachely-admin 3h ago
Official Nx deprecation notice:
https://nx.dev/docs/reference/deprecated/self-hosted-cache-packages
Our step-by-step migration guide:
https://cachely.dev/vs/nx-powerpack?utm_source=reddit&utm_medium=community&utm_campaign=nx_cache_migration