nx/docs/shared/recipes/running-tasks/change-cache-location.md

454 B

title description
Change Cache Location Learn how to customize where Nx stores its cache files by modifying the cacheDirectory setting in your nx.json configuration.

Change Cache Location

By default the cache is stored locally in .nx/cache. Cache results are stored for a week before they get deleted. You can customize the cache location in the nx.json file:

{
  "cacheDirectory": "/tmp/mycache"
}