Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Feb 12, 2025
1 parent 033c485 commit 0f6dcdf
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions packages/open-next/src/types/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,32 @@ declare global {
// Needed in the cache adapter
/**
* The cache adapter for incremental static regeneration.
* Only available in main functions and in the external middleware when `enableCacheInterception` is `true`.
* Defined in `createMainHandler` and in `adapters/middleware.ts`.
*/
var incrementalCache: IncrementalCache;

/**
* The cache adapter for the tag cache.
* Only available in main functions and in the external middleware when `enableCacheInterception` is `true`.
* Defined in `createMainHandler` and in `adapters/middleware.ts`.
*/
var tagCache: TagCache;

/**
* The queue that is used to handle ISR revalidation requests.
* Only available in main functions and in the external middleware when `enableCacheInterception` is `true`.
* Defined in `createMainHandler` and in `adapters/middleware.ts`.
*/
var queue: Queue;

/**
* A boolean that indicates if the DynamoDB cache is disabled.
* @deprecated This will be removed, use `globalThis.openNextConfig.dangerous?.disableTagCache` instead.
* Defined in esbuild banner for the cache adapter.
*/
var disableDynamoDBCache: boolean;

/**
* A boolean that indicates if the incremental cache is disabled.
* @deprecated This will be removed, use `globalThis.openNextConfig.dangerous?.disableIncrementalCache` instead.
Expand Down Expand Up @@ -191,12 +203,6 @@ declare global {
*/
var openNextVersion: string;

/**
* The queue that is used to handle ISR revalidation requests.
* Defined in `createMainHandler` and in `adapters/middleware.ts`.
*/
var queue: Queue;

/**
* The function that is used when resolving external rewrite requests.
* Only available in main functions
Expand Down

0 comments on commit 0f6dcdf

Please sign in to comment.