Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/canary' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jul 22, 2021
2 parents 20a7730 + a3b2205 commit f4bba45
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion errors/no-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ Using GitHub's [actions/cache](https://github.com/actions/cache), add the follow
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]sx?') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
```
#### Bitbucket Pipelines
Expand Down

0 comments on commit f4bba45

Please sign in to comment.