Skip to content

Commit 75f5f0a

Browse files
edmundhungvicbisaacrowntree
authored
feat: use remote dev for r2 cache population (#1159)
feat: use remote dev for r2 cache population Use Wrangler remote dev for remote R2 cache population, ensure the target bucket exists before uploading cache entries, and isolate the helper worker from project config discovery. Co-authored-by: Victor Berchet <victor@suumit.com> Co-authored-by: Isaac Rowntree <isaac@rowntree.me>
1 parent 6fdc1e2 commit 75f5f0a

File tree

8 files changed

+1038
-289
lines changed

8 files changed

+1038
-289
lines changed

.changeset/fix-r2-cache-upload.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@opennextjs/cloudflare": minor
3+
---
4+
5+
Use remote dev for R2 cache population
6+
7+
Using remote dev is not subject to the Cloudflare API rate limit of 1,200 requests per 5 minutes that caused failures for large applications with thousands of prerendered pages.

0 commit comments

Comments
 (0)