Skip to content

Commit

Permalink
document fixes for the cache section (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
kokiebisu authored Feb 26, 2022
1 parent 3f4bd92 commit ca5a228
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/pages/docs/features/caching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ Luckily, you can control `turbo`'s cache fingerprinting (a.k.a. hashing) behavio
"$schema": "https://turborepo.org/schema.json",
"pipeline": {
"build": {
"dependsOn": {
"^build"
// env vars will impact hashes of all "build" tasks
"$SOME_ENV_VAR"
},
"dependsOn": [
"^build",
// env vars will impact hashes of all "build" tasks
"$SOME_ENV_VAR",
],
"outputs": ["dist/**"]
},
"web#build": { // override settings for the "build" task for the "web" app
Expand All @@ -120,9 +120,9 @@ Luckily, you can control `turbo`'s cache fingerprinting (a.k.a. hashing) behavio
},
"baseBranch": "origin/main",
"globalDependencies": [
"$GITHUB_TOKEN"// env var that will impact the hashes of all tasks,
"tsconfig.json" // file contents will impact the hashes of all tasks,
".env.*" // glob file contents will impact the hashes of all tasks,
"$GITHUB_TOKEN",// env var that will impact the hashes of all tasks,
"tsconfig.json", // file contents will impact the hashes of all tasks,
".env.*", // glob file contents will impact the hashes of all tasks,
]
}
```
Expand Down

1 comment on commit ca5a228

@vercel
Copy link

@vercel vercel bot commented on ca5a228 Feb 26, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.