Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 540 Bytes

change-cache-location.md

File metadata and controls

30 lines (24 loc) · 540 Bytes

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:

{% tabs %} {% tab label="Nx >= 17" %}

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

{% /tab %} {% tab label="Nx < 17" %}

{
  "tasksRunnerOptions": {
    "default": {
      "options": {
        "cacheDirectory": "/tmp/mycache"
      }
    }
  }
}

{% /tab %} {% /tabs %}