Skip to content

Commit

Permalink
Add Bitbucket Pipelines to errors/no-cache.md (#10229)
Browse files Browse the repository at this point in the history
* Update no-cache.md: add Bitbucket Pipelines

Add section on how to setup caching for Bitbucket Pipelines

* Update no-cache.md

Change wording of referencing the next cache in bitbucket pipeline
  • Loading branch information
mgrubinger authored and timneutkens committed Jan 23, 2020
1 parent 85571af commit 60e6224
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions errors/no-cache.md
Expand Up @@ -74,3 +74,23 @@ cache:
- 'node_modules/**/*' # Cache `node_modules` for faster `yarn` or `npm i`
- '.next/cache/**/*' # Cache Next.js for faster application rebuilds
```

**Bitbucket Pipelines**

Add or merge the following into your `bitbucket-pipelines.yml` at the top level (same level as `pipelines`):

```yaml
definitions:
caches:
nextcache: .next/cache
```

Then reference it in the `caches` section of your pipeline's `step`:

```yaml
- step:
name: your_step_name
caches:
- node
- nextcache
```

0 comments on commit 60e6224

Please sign in to comment.