Skip to content

Commit 65b4b4b

Browse files
add inline comment for regional cache
1 parent 16290e9 commit 65b4b4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/site/open-next.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import { withRegionalCache } from '@opennextjs/cloudflare/overrides/incremental-
55
import doQueue from '@opennextjs/cloudflare/overrides/queue/do-queue';
66

77
const cloudflareConfig = defineCloudflareConfig({
8+
/**
9+
* The regional cache implementation with R2 (instead of a KV one) is is chosen here
10+
* for both R2's strong consistency alongside the regional cache performance gains.
11+
* @see https://opennext.js.org/cloudflare/caching
12+
*/
813
incrementalCache: withRegionalCache(r2IncrementalCache, {
914
mode: 'long-lived',
1015
}),

0 commit comments

Comments
 (0)