Use Nx Cloud

September 25, 2023 ยท View on GitHub

use-nx-cloud.png

Description

This validator checks that the workspace is using Nx Cloud.

Solution

  1. Ensure you have the default configuration in nx.json
{
  "tasksRunnerOptions": {
        "default": {
            "runner": "nx/tasks-runners/default",
            "options": {
                "cacheableOperations": ["build", "lint"]
            }
        }
    }
}
  1. Then you can connect your workspace by using the command:
NX_CLOUD_API="http://nxcloud.dev.env.works" npx nx connect