Skip to content

Commit

Permalink
docs: update custom-remote-caching.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matteovivona committed Jul 19, 2024
1 parent 480212f commit 298d521
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/custom-remote-caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ For example:
Now, you need to add these two environment variables TURBO_TEAM and TURBO_TOKEN to your CI pipeline or development machine. There are three ways to do it:

1. Set/export the `TURBO_TEAM=ducktors` and`TURBO_TOKEN=myGeneratedToken` as environment variable.
2. Add `team` and `token` to the *turbo* global config file. You can find or create it inside the `$XDG_CONFIG_HOME/turborepo/config.json`. To know where the`XDG_CONFIG_HOME` is located on your machine, please check out the [xdg-base-directory](https://github.com/adrg/xdg#xdg-base-directory) documentation. For example:
2. Add `teamid` and `token` to the *turbo* global config file. You can find or create it inside the `$XDG_CONFIG_HOME/turborepo/config.json`. To know where the`XDG_CONFIG_HOME` is located on your machine, please check out the [xdg-base-directory](https://github.com/adrg/xdg#xdg-base-directory) documentation. For example:

`.turbo/config.json`

```json
{
"team": "ducktors",
"token" : "myGeneratedToken",
"teamid": "ducktors",
"token": "myGeneratedToken",
"experimentalUI": false,
"apiurl": "http://cache.ducktors.dev"
}
```
Expand All @@ -50,7 +51,7 @@ For example:
`package.json`
```jsonc
//...
"build": "turbo run build --team=\"ducktors\" --token=\"myGeneratedToken\"",
"build": "turbo run build --teamid=\"ducktors\" --token=\"myGeneratedToken\"",
"dev": "turbo run dev --parallel",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
Expand Down

0 comments on commit 298d521

Please sign in to comment.