From 9f551945539e5f832b96e6c8ca0c22c47c90cf5c Mon Sep 17 00:00:00 2001 From: Nicholas Cunningham Date: Thu, 17 Oct 2024 12:39:25 -0600 Subject: [PATCH] fix(core): neverConnectToCloud should disable connecting to nxCloud closed #28482, #28486 --- packages/nx/src/utils/nx-cloud-utils.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/nx/src/utils/nx-cloud-utils.ts b/packages/nx/src/utils/nx-cloud-utils.ts index e0db798d57817..5b33d7435ec07 100644 --- a/packages/nx/src/utils/nx-cloud-utils.ts +++ b/packages/nx/src/utils/nx-cloud-utils.ts @@ -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 ||