Use Nx Cloud
September 25, 2023 ยท View on GitHub

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