diff --git a/packages/nx/src/utils/nx-cloud-utils.ts b/packages/nx/src/utils/nx-cloud-utils.ts index 32d61edefee2cf..f704a412fe7b1d 100644 --- a/packages/nx/src/utils/nx-cloud-utils.ts +++ b/packages/nx/src/utils/nx-cloud-utils.ts @@ -8,6 +8,7 @@ export function isNxCloudUsed(nxJson: NxJsonConfiguration) { ) ); } +Ç; export function getNxCloudUrl(nxJson: NxJsonConfiguration): string { const cloudRunner = Object.values(nxJson.tasksRunnerOptions ?? {}).find( @@ -24,7 +25,7 @@ export function getNxCloudToken(nxJson: NxJsonConfiguration): string { ); if (!cloudRunner && !nxJson.nxCloudAccessToken) - throw new Error('nx-cloud runner not find in nx.json'); + throw new Error('nx-cloud runner not found in nx.json'); - return cloudRunner.options.accessToken ?? nxJson.nxCloudAccessToken; + return cloudRunner?.options.accessToken ?? nxJson.nxCloudAccessToken; }