@opennextjs/cloudflare 1.3.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opennextjs/cloudflare",
|
|
3
3
|
"description": "Cloudflare builder for next apps",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"opennextjs-cloudflare": "dist/cli/index.js"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"homepage": "https://github.com/opennextjs/opennextjs-cloudflare",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@dotenvx/dotenvx": "1.31.0",
|
|
46
|
-
"@opennextjs/aws": "3.
|
|
46
|
+
"@opennextjs/aws": "3.7.0",
|
|
47
47
|
"enquirer": "^2.4.1",
|
|
48
48
|
"glob": "^11.0.0",
|
|
49
49
|
"ts-tqdm": "^0.8.6"
|
|
@@ -3,5 +3,5 @@ import { defineCloudflareConfig } from "@opennextjs/cloudflare/config";
|
|
|
3
3
|
import r2IncrementalCache from "@opennextjs/cloudflare/overrides/incremental-cache/r2-incremental-cache";
|
|
4
4
|
|
|
5
5
|
export default defineCloudflareConfig({
|
|
6
|
-
|
|
6
|
+
incrementalCache: r2IncrementalCache,
|
|
7
7
|
});
|
package/templates/wrangler.jsonc
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
"$schema": "node_modules/wrangler/config-schema.json",
|
|
3
|
+
"main": ".open-next/worker.js",
|
|
4
|
+
"name": "app-name",
|
|
5
|
+
"compatibility_date": "2024-12-30",
|
|
6
|
+
"compatibility_flags": ["nodejs_compat", "global_fetch_strictly_public"],
|
|
7
|
+
"assets": {
|
|
8
|
+
"directory": ".open-next/assets",
|
|
9
|
+
"binding": "ASSETS"
|
|
10
|
+
},
|
|
11
|
+
"r2_buckets": [
|
|
12
|
+
// Use R2 incremental cache
|
|
13
|
+
// See https://opennext.js.org/cloudflare/caching
|
|
14
|
+
{
|
|
15
|
+
"binding": "NEXT_INC_CACHE_R2_BUCKET",
|
|
16
|
+
// Create the bucket before deploying
|
|
17
|
+
// You can change the bucket name if you want
|
|
18
|
+
// See https://developers.cloudflare.com/workers/wrangler/commands/#r2-bucket-create
|
|
19
|
+
"bucket_name": "cache"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
22
|
}
|