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 1
1
// default open-next.config.ts file created by @opennextjs/cloudflare
2
2
import { 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" ;
4
4
5
5
export default defineCloudflareConfig ( {
6
- incrementalCache : kvIncrementalCache ,
6
+ incrementalCache : r2IncrementalCache ,
7
7
} ) ;
Original file line number Diff line number Diff line change 8
8
"directory" : " .open-next/assets" ,
9
9
"binding" : " ASSETS"
10
10
},
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
14
13
// {
15
- // "binding": "NEXT_INC_CACHE_KV ",
16
- // "id ": "<BINDING_ID>"
17
- // }
14
+ // "binding": "NEXT_INC_CACHE_R2_BUCKET ",
15
+ // "bucket_name ": "<BUCKET_NAME>",
16
+ // },
18
17
]
19
18
}
You can’t perform that action at this time.
0 commit comments