File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ export class NetlifyCacheHandler implements CacheHandlerForMultipleVersions {
230
230
...args : Parameters < CacheHandlerForMultipleVersions [ 'get' ] >
231
231
) : ReturnType < CacheHandlerForMultipleVersions [ 'get' ] > {
232
232
return this . tracer . withActiveSpan ( 'get cache key' , async ( span ) => {
233
- const [ key , ctx = { } ] = args
233
+ const [ key , context = { } ] = args
234
234
getLogger ( ) . debug ( `[NetlifyCacheHandler.get]: ${ key } ` )
235
235
236
236
span . setAttributes ( { key } )
@@ -263,7 +263,7 @@ export class NetlifyCacheHandler implements CacheHandlerForMultipleVersions {
263
263
return null
264
264
}
265
265
266
- const staleByTags = await this . checkCacheEntryStaleByTags ( blob , ctx . tags , ctx . softTags )
266
+ const staleByTags = await this . checkCacheEntryStaleByTags ( blob , context . tags , context . softTags )
267
267
268
268
if ( staleByTags ) {
269
269
span . addEvent ( 'Stale' , { staleByTags, key, ttl } )
@@ -277,7 +277,7 @@ export class NetlifyCacheHandler implements CacheHandlerForMultipleVersions {
277
277
case 'FETCH' :
278
278
span . addEvent ( 'FETCH' , {
279
279
lastModified : blob . lastModified ,
280
- revalidate : ctx . revalidate ,
280
+ revalidate : context . revalidate ,
281
281
ttl,
282
282
} )
283
283
return {
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ function isRevalidateMethod(
15
15
}
16
16
17
17
// Needing to proxy the response object to intercept the revalidate call for on-demand revalidation on page routes
18
- export const nextResponseProxy = ( res : ServerResponse , requestContext : RequestContext ) => {
19
- return new Proxy ( res , {
18
+ export const nextResponseProxy = ( response : ServerResponse , requestContext : RequestContext ) => {
19
+ return new Proxy ( response , {
20
20
get ( target : ServerResponse , key : string ) {
21
21
const originalValue = Reflect . get ( target , key )
22
22
if ( isRevalidateMethod ( key , originalValue ) ) {
You can’t perform that action at this time.
0 commit comments