Releases: opennextjs/opennextjs-cloudflare
@opennextjs/[email protected]
@opennextjs/[email protected]
@opennextjs/[email protected]
@opennextjs/[email protected]
Patch Changes
-
#968
ddb0589Thanks @rgembalik! - fix: Compiled config is now imported usingpathToFileURLto avoid crashes on Windows. -
#978
d7ad53eThanks @vicb! - error early when a node middleware is detected -
#976
93f4c8aThanks @rgembalik! - fix: shell quoting on windows machines to avoid upload errors for routes with[...path]segments
@opennextjs/[email protected]
Minor Changes
-
#925
62fee71Thanks @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_IDR2_SECRET_ACCESS_KEYCF_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.varsfile in your project root: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.
-
Patch Changes
@opennextjs/[email protected]
Patch Changes
-
#945
f73ac0fThanks @vicb! - bump@opennextjs/awsto 3.8.4See details at https://github.com/opennextjs/opennextjs-aws/releases/tag/v3.8.4
@opennextjs/[email protected]
Minor Changes
-
#937
32ba91aThanks @vicb! - feat: retrieve CLI environment variables fromprocess.envand.env*filesRecommended usage on CI:
- Add your secrets to
process.env(i.e.CF_ACCOUNT_ID) - Add public values to the wrangler config
wrangler.jsonc(i.e.R2_CACHE_PREFIX_ENV_NAME)
Recommended usage for local dev:
- Add your secrets to either a
.dev.vars*or.env*file (i.e.CF_ACCOUNT_ID) - Add public values to the wrangler config
wrangler.jsonc(i.e.R2_CACHE_PREFIX_ENV_NAME)
- Add your secrets to
Patch Changes
@opennextjs/[email protected]
Patch Changes
-
#932
0c7d1aeThanks @vicb! - bump@opennextjs/awsto 3.8.1See details at https://github.com/opennextjs/opennextjs-aws/releases/tag/v3.8.1