File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
examples/overrides/static-assets-incremental-cache
api/overrides/incremental-cache Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 11import { defineCloudflareConfig } from "@opennextjs/cloudflare" ;
2- import memoryQueue from "@opennextjs/cloudflare/overrides/queue/memory-queue" ;
32import staticAssetsIncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/static-assets-incremental-cache" ;
43
54export default defineCloudflareConfig ( {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const CACHE_DIR = "cdn-cgi/_next_cache";
99export 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 */
1515class StaticAssetsIncrementalCache implements IncrementalCache {
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments