Skip to content

Commit

Permalink
docs(nx-cloud): add nx-cloud.env info (#11231)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcabanes committed Jul 20, 2022
1 parent 41693f9 commit 8f628cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/nx-cloud/account/access-tokens.md
Expand Up @@ -33,3 +33,7 @@ If you remove the `accessToken` property from the configuration, the runner will
## Setting a Different Access Token in CI

You can also configure the access token by setting the `NX_CLOUD_ACCESS_TOKEN` environment variable. `NX_CLOUD_ACCESS_TOKEN` takes precedence over the `accessToken` property. It's common to have a read-only token stored in `nx.json` and a read-write token set via `NX_CLOUD_ACCESS_TOKEN` in CI.

## Using `nx-cloud.env`

You can set locally an environment variable via the `nx-cloud.env` file. Nx Cloud CLI will be looking into this file to load custom configuration like `NX_CLOUD_ACCESS_TOKEN`. These environment variables will take precedence over the configuration in `nx.json`.

1 comment on commit 8f628cd

@vercel
Copy link

@vercel vercel bot commented on 8f628cd Jul 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx.dev
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app

Please sign in to comment.