Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
@opennextjs_cloudflare@1.11.0 source code.tar.gz | < 19 hours ago | 2.7 MB | |
@opennextjs_cloudflare@1.11.0 source code.zip | < 19 hours ago | 3.0 MB | |
README.md | < 19 hours ago | 2.7 kB | |
Totals: 3 Items | 5.7 MB | 0 |
Minor Changes
-
#925
62fee71
Thanks @krzysztof-palka-monogo! - feature: optional batch upload for faster R2 cache populationThis update adds optional batch upload support for R2 cache population, significantly improving upload performance for large caches when enabled via .env or environment variables.
Key Changes:
-
Optional Batch Upload: Configure R2 credentials via .env or environment variables to enable faster batch uploads:
R2_ACCESS_KEY_ID
R2_SECRET_ACCESS_KEY
CF_ACCOUNT_ID
-
Automatic Detection: When credentials are detected, batch upload is automatically used for better performance
-
Smart Fallback: If credentials are not configured, the CLI falls back to standard Wrangler uploads with a helpful message about enabling batch upload for better performance
All deployment commands support batch upload:
populateCache
- Explicit cache populationdeploy
- Deploy with cache populationupload
- Upload version with cache populationpreview
- Preview with cache population
Performance Benefits (when batch upload is enabled):
- Parallel transfer capabilities (32 concurrent transfers)
- Significantly faster for large caches
- Reduced API calls to Cloudflare
Usage:
Add the credentials in a
.env
/.dev.vars
file in your project root:bash R2_ACCESS_KEY_ID=your_key R2_SECRET_ACCESS_KEY=your_secret CF_ACCOUNT_ID=your_account
You can also set the environment variables for CI builds.
Note:
You can follow documentation https://developers.cloudflare.com/r2/api/tokens/ for creating API tokens with appropriate permissions for R2 access.
-