Skip to content

Commit 74d1c11

Browse files
authored
Use an actual R2 binding to enable preview (#565)
1 parent 9f546f3 commit 74d1c11

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

packages/cloudflare/templates/wrangler.jsonc

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@
99
"binding": "ASSETS"
1010
},
1111
"r2_buckets": [
12-
// Create a binding to use R2 incremental cache
13-
// {
14-
// "binding": "NEXT_INC_CACHE_R2_BUCKET",
15-
// "bucket_name": "<BUCKET_NAME>",
16-
// },
12+
// Use R2 incremental cache
13+
// See https://opennext.js.org/cloudflare/caching
14+
{
15+
"binding": "NEXT_INC_CACHE_R2_BUCKET",
16+
// Create a bucket before deploying
17+
// See https://developers.cloudflare.com/workers/wrangler/commands/#r2-bucket-create
18+
"bucket_name": "<BUCKET_NAME>"
19+
}
1720
]
1821
}

0 commit comments

Comments
 (0)