Skip to content

Commit

Permalink
fix(core): support NX_NO_CLOUD
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammisuli committed Oct 8, 2024
1 parent fba6cc8 commit 1eebd1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/nx/src/utils/nx-cloud-utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { NxJsonConfiguration } from '../config/nx-json';

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

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

0 comments on commit 1eebd1f

Please sign in to comment.