File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ function encodeBlobKey(key: string) {
34
34
return Buffer . from ( key . replace ( / ^ \/ / , '' ) ) . toString ( 'base64' )
35
35
}
36
36
37
+ const fetchBeforeNextPatchedIt = globalThis . fetch
38
+
37
39
export class NetlifyCacheHandler implements CacheHandler {
38
40
options : CacheHandlerContext
39
41
revalidatedTags : string [ ]
@@ -42,7 +44,7 @@ export class NetlifyCacheHandler implements CacheHandler {
42
44
constructor ( options : CacheHandlerContext ) {
43
45
this . options = options
44
46
this . revalidatedTags = options . revalidatedTags
45
- this . blobStore = getDeployStore ( )
47
+ this . blobStore = getDeployStore ( { fetch : fetchBeforeNextPatchedIt } )
46
48
}
47
49
48
50
async get ( ...args : Parameters < CacheHandler [ 'get' ] > ) : ReturnType < CacheHandler [ 'get' ] > {
You can’t perform that action at this time.
0 commit comments