Skip to content

make nx work with remote cache #369

@veeramarni

Description

@veeramarni
{
  "tasksRunnerOptions": {
    "default": {
      "runner": "nx/tasks-runners/default",
      "options": {
        "cacheableOperations": [
          "build"
        ],
        "runtimeCacheInputs": [
          "node --version"
        ],
        "remoteCache": {
          "enabled": "${NX_REMOTE_CACHE_ENABLED:false}",
          "s3": {
            "bucket": "${NX_REMOTE_CACHE_BUCKET}",
            "region": "${NX_REMOTE_CACHE_REGION}",
            "accessKeyId": "${NX_REMOTE_CACHE_ACCESS_KEY_ID}",
            "secretAccessKey": "${NX_REMOTE_CACHE_SECRET_ACCESS_KEY}"
          }
        }
      }
    }
  },
  "targetDefaults": {
    "build": {
      "dependsOn": [
        "^build"
      ],
      "inputs": [
        "default",
        "^default",
        "{projectRoot}/src/**/*"
      ]
    },
    "test": {
      "dependsOn": [
        "build"
      ]
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions