Add Azure Pipelines example to no-cache docs (#22708)
I added this in to my own pipeline to fix the no-cache error and thought it may be of use to others.
This commit is contained in:
parent
5b479b609a
commit
bdc20c2657
1 changed files with 12 additions and 0 deletions
|
@ -111,3 +111,15 @@ Using Heroku's [custom cache](https://devcenter.heroku.com/articles/nodejs-suppo
|
|||
```javascript
|
||||
"cacheDirectories": [".next/cache"]
|
||||
```
|
||||
|
||||
#### Azure Pipelines
|
||||
|
||||
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`:
|
||||
|
||||
```yaml
|
||||
- task: Cache@2
|
||||
displayName: 'Cache .next/cache'
|
||||
inputs:
|
||||
key: next | $(Agent.OS) | yarn.lock
|
||||
path: '$(System.DefaultWorkingDirectory)/.next/cache'
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue