@opennextjs/cloudflare 0.5.6 → 0.5.7
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.
|
@@ -28,7 +28,7 @@ export async function createWranglerConfigIfNotExistent(projectOpts) {
|
|
|
28
28
|
"(to avoid this check use the `--skipWranglerConfigCheck` flag or set a `SKIP_WRANGLER_CONFIG_CHECK` environment variable to `yes`)");
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
let wranglerConfig = readFileSync(join(getPackageTemplatesDirPath(), "
|
|
31
|
+
let wranglerConfig = readFileSync(join(getPackageTemplatesDirPath(), "wrangler.json"), "utf8");
|
|
32
32
|
const appName = getAppNameFromPackageJson(projectOpts.sourceDir) ?? "app-name";
|
|
33
33
|
if (appName) {
|
|
34
34
|
wranglerConfig = wranglerConfig.replace('"app-name"', JSON.stringify(appName.replaceAll("_", "-")));
|
|
@@ -80,6 +80,6 @@ export async function createOpenNextConfigIfNotExistent(projectOpts) {
|
|
|
80
80
|
if (!answer) {
|
|
81
81
|
throw new Error("The `open-next.config.ts` file is required, aborting!");
|
|
82
82
|
}
|
|
83
|
-
cpSync(join(getPackageTemplatesDirPath(), "
|
|
83
|
+
cpSync(join(getPackageTemplatesDirPath(), "open-next.config.ts"), openNextConfigPath);
|
|
84
84
|
}
|
|
85
85
|
}
|
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": "0.5.
|
|
4
|
+
"version": "0.5.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"opennextjs-cloudflare": "dist/cli/index.js"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://github.com/opennextjs/opennextjs-cloudflare",
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@cloudflare/workers-types": "^4.
|
|
45
|
+
"@cloudflare/workers-types": "^4.20250224.0",
|
|
46
46
|
"@eslint/js": "^9.11.1",
|
|
47
47
|
"@tsconfig/strictest": "^2.0.5",
|
|
48
48
|
"@types/mock-fs": "^4.13.4",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"yaml": "^2.7.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"wrangler": "^3.
|
|
72
|
+
"wrangler": "^3.111.0"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
75
|
"clean": "rimraf dist",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// default open-next.config.ts file created by @opennextjs/cloudflare
|
|
2
|
+
import { defineCloudflareConfig } from "@opennextjs/cloudflare/config";
|
|
3
|
+
import kvIncrementalCache from "@opennextjs/cloudflare/kv-cache";
|
|
4
|
+
|
|
5
|
+
export default defineCloudflareConfig({
|
|
6
|
+
incrementalCache: kvIncrementalCache,
|
|
7
|
+
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// default open-next.config.ts file created by @opennextjs/cloudflare
|
|
2
|
-
import { defineCloudflareConfig } from "@opennextjs/cloudflare/dist/api/config";
|
|
3
|
-
import kvIncrementalCache from "@opennextjs/cloudflare/dist/api/kv-cache";
|
|
4
|
-
|
|
5
|
-
export default defineCloudflareConfig({
|
|
6
|
-
incrementalCache: kvIncrementalCache,
|
|
7
|
-
});
|
|
File without changes
|