Skip to content

Commit c3b597c

Browse files
authored
Apply suggestions from code review
1 parent 2fbb98e commit c3b597c

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

examples/overrides/static-assets-incremental-cache/open-next.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { defineCloudflareConfig } from "@opennextjs/cloudflare";
2-
import memoryQueue from "@opennextjs/cloudflare/overrides/queue/memory-queue";
32
import staticAssetsIncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/static-assets-incremental-cache";
43

54
export default defineCloudflareConfig({

packages/cloudflare/src/api/overrides/incremental-cache/static-assets-incremental-cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const CACHE_DIR = "cdn-cgi/_next_cache";
99
export const NAME = "cf-static-assets-incremental-cache";
1010

1111
/**
12-
* This cache uses KV static assets and is not recommended. It should only be used for applications
12+
* This cache uses Workers static assets and is not recommended. It should only be used for applications
1313
* that do NOT want revalidation and ONLY want to serve pre-rendered data.
1414
*/
1515
class StaticAssetsIncrementalCache implements IncrementalCache {

packages/cloudflare/src/cli/commands/populate-cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export async function populateCache(
113113
mkdirSync(path.dirname(outputDestPath), { recursive: true });
114114
cpSync(fsPath, outputDestPath);
115115
}
116-
logger.info(`Successfully populated static assets`);
116+
logger.info(`Successfully populated static assets cache with ${assets.length} assets`);
117117
break;
118118
}
119119
default:

0 commit comments

Comments
 (0)