Skip to content

Commit bdc20c2

Browse files
authored
Add Azure Pipelines example to no-cache docs (vercel#22708)
I added this in to my own pipeline to fix the no-cache error and thought it may be of use to others.
1 parent 5b479b6 commit bdc20c2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

errors/no-cache.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,15 @@ Using Heroku's [custom cache](https://devcenter.heroku.com/articles/nodejs-suppo
111111
```javascript
112112
"cacheDirectories": [".next/cache"]
113113
```
114+
115+
#### Azure Pipelines
116+
117+
Using Azure Pipelines' [Cache task](https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/cache), add the following task to your pipeline yaml file somewhere prior to the task that executes `next build`:
118+
119+
```yaml
120+
- task: Cache@2
121+
displayName: 'Cache .next/cache'
122+
inputs:
123+
key: next | $(Agent.OS) | yarn.lock
124+
path: '$(System.DefaultWorkingDirectory)/.next/cache'
125+
```

0 commit comments

Comments
 (0)