File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export async function saveCache({
22
22
23
23
const cacheDirs = getCacheDirs ( publish )
24
24
25
- // @ts -expect-error - `move` is not in the types, but should be passed through to @netlify/cache-utils that support this option
25
+ // @ts -expect-error - `move` is not in the types, but it is passed through to @netlify/cache-utils that support this option
26
26
if ( await utils . cache . save ( cacheDirs , { move : true } ) ) {
27
27
utils . status . show ( {
28
28
title : 'Essential Gatsby Build Plugin ran successfully' ,
@@ -40,7 +40,8 @@ export async function restoreCache({ publish, utils }): Promise<void> {
40
40
41
41
const cacheDirs = getCacheDirs ( publish )
42
42
43
- if ( await utils . cache . restore ( cacheDirs ) ) {
43
+ // @ts -expect-error - `move` is not in the types, but it is passed through to @netlify/cache-utils that support this option
44
+ if ( await utils . cache . restore ( cacheDirs , { move : true } ) ) {
44
45
console . log ( 'Found a Gatsby cache. We’re about to go FAST. ⚡️' )
45
46
} else {
46
47
console . log ( 'No Gatsby cache found. Building fresh.' )
You can’t perform that action at this time.
0 commit comments