File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
packages/cloudflare/templates Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 11// default open-next.config.ts file created by @opennextjs/cloudflare
22import { defineCloudflareConfig } from "@opennextjs/cloudflare/config" ;
3- import kvIncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/kv -incremental-cache" ;
3+ import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2 -incremental-cache" ;
44
55export default defineCloudflareConfig ( {
6- incrementalCache : kvIncrementalCache ,
6+ incrementalCache : r2IncrementalCache ,
77} ) ;
Original file line number Diff line number Diff line change 88 "directory" : " .open-next/assets" ,
99 "binding" : " ASSETS"
1010 },
11- "kv_namespaces" : [
12- // Create a KV binding with the binding name "NEXT_INC_CACHE_KV"
13- // to enable the KV based caching:
11+ "r2_buckets" : [
12+ // Create a binding to use R2 incremental cache
1413 // {
15- // "binding": "NEXT_INC_CACHE_KV ",
16- // "id ": "<BINDING_ID>"
17- // }
14+ // "binding": "NEXT_INC_CACHE_R2_BUCKET ",
15+ // "bucket_name ": "<BUCKET_NAME>",
16+ // },
1817 ]
1918}
You can’t perform that action at this time.
0 commit comments