提交 60e62241 编写于 作者: M Martin Grubinger 提交者: Tim Neutkens

Add Bitbucket Pipelines to errors/no-cache.md (#10229)

* 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
上级 85571af1
......@@ -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
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册