Skip to content

Commit

Permalink
fix(core): neverConnectToCloud should disable connecting to nxCloud
Browse files Browse the repository at this point in the history
closed #28482, #28486
  • Loading branch information
ndcunningham committed Oct 17, 2024
1 parent c902036 commit 9f55194
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/nx/src/utils/nx-cloud-utils.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import { NxJsonConfiguration } from '../config/nx-json';

export function isNxCloudUsed(nxJson: NxJsonConfiguration): boolean {
if (process.env.NX_NO_CLOUD === 'true') {
if (process.env.NX_NO_CLOUD === 'true' || nxJson.neverConnectToCloud) {
return false;
}

if (nxJson.neverConnectToCloud) {
return true;
}

return (
!!process.env.NX_CLOUD_ACCESS_TOKEN ||
!!nxJson.nxCloudAccessToken ||
Expand Down

0 comments on commit 9f55194

Please sign in to comment.