From 1bcfa8a8af59516db131ba97799fbed1a16d677c Mon Sep 17 00:00:00 2001 From: Chris Meagher Date: Wed, 3 Mar 2021 00:11:00 +0000 Subject: [PATCH] Add Azure Pipelines example to no-cache docs --- errors/no-cache.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/errors/no-cache.md b/errors/no-cache.md index 53a632c4f087f..7e02c8188af05 100644 --- a/errors/no-cache.md +++ b/errors/no-cache.md @@ -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' +```