create-cloudflare 2.35.1 → 2.36.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/dist/cli.js +23 -20
- package/package.json +4 -4
- package/templates/hello-world/js/wrangler.toml +0 -1
- package/templates/hello-world/ts/wrangler.toml +0 -1
- package/templates/next/c3.ts +1 -1
- package/templates/solid/c3.ts +1 -1
- package/templates-experimental/next/c3.ts +7 -4
- package/templates-experimental/next/templates/.dev.vars +2 -0
- package/templates-experimental/next/templates/__dot__gitignore +2 -5
- package/templates-experimental/next/templates/open-next.config.ts +28 -0
- package/templates-experimental/next/templates/wrangler.toml +2 -2
- package/templates-experimental/solid/c3.ts +1 -1
package/dist/cli.js
CHANGED
|
@@ -73725,7 +73725,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
73725
73725
|
var yargs_default = Yargs;
|
|
73726
73726
|
|
|
73727
73727
|
// package.json
|
|
73728
|
-
var version = "2.
|
|
73728
|
+
var version = "2.36.0";
|
|
73729
73729
|
|
|
73730
73730
|
// src/metrics.ts
|
|
73731
73731
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -74489,18 +74489,18 @@ var package_default = {
|
|
|
74489
74489
|
dependencies: {
|
|
74490
74490
|
"create-astro": "4.11.0",
|
|
74491
74491
|
"create-analog": "1.8.1",
|
|
74492
|
-
"@angular/create": "19.0.
|
|
74493
|
-
"create-docusaurus": "3.
|
|
74492
|
+
"@angular/create": "19.0.6",
|
|
74493
|
+
"create-docusaurus": "3.7.0",
|
|
74494
74494
|
"create-hono": "0.14.3",
|
|
74495
|
-
"create-next-app": "15.1.
|
|
74496
|
-
"create-qwik": "1.
|
|
74497
|
-
"create-vite": "6.
|
|
74498
|
-
"create-remix": "2.15.
|
|
74495
|
+
"create-next-app": "15.1.3",
|
|
74496
|
+
"create-qwik": "1.12.0",
|
|
74497
|
+
"create-vite": "6.1.1",
|
|
74498
|
+
"create-remix": "2.15.2",
|
|
74499
74499
|
"create-solid": "0.5.14",
|
|
74500
|
-
"create-vue": "3.
|
|
74501
|
-
gatsby: "5.14.
|
|
74502
|
-
sv: "0.6.
|
|
74503
|
-
nuxi: "3.
|
|
74500
|
+
"create-vue": "3.13.0",
|
|
74501
|
+
gatsby: "5.14.1",
|
|
74502
|
+
sv: "0.6.10",
|
|
74503
|
+
nuxi: "3.17.2"
|
|
74504
74504
|
}
|
|
74505
74505
|
};
|
|
74506
74506
|
|
|
@@ -74945,7 +74945,10 @@ var generate6 = async (ctx) => {
|
|
|
74945
74945
|
]);
|
|
74946
74946
|
};
|
|
74947
74947
|
var configure3 = async () => {
|
|
74948
|
-
const packages = [
|
|
74948
|
+
const packages = [
|
|
74949
|
+
"@opennextjs/cloudflare@0.3.x",
|
|
74950
|
+
"@cloudflare/workers-types"
|
|
74951
|
+
];
|
|
74949
74952
|
await installPackages(packages, {
|
|
74950
74953
|
dev: true,
|
|
74951
74954
|
startText: "Adding the Cloudflare adapter",
|
|
@@ -74961,7 +74964,7 @@ var c3_default9 = {
|
|
|
74961
74964
|
// is not yet fully ready for Next.js 15, once it is we should remove the following
|
|
74962
74965
|
frameworkCliPinnedVersion: "14.2.5",
|
|
74963
74966
|
platform: "workers",
|
|
74964
|
-
displayName: "Next (using Node.js compat + Workers Assets)",
|
|
74967
|
+
displayName: "Next.js (using Node.js compat + Workers Assets)",
|
|
74965
74968
|
path: "templates-experimental/next",
|
|
74966
74969
|
copyFiles: {
|
|
74967
74970
|
path: "./templates"
|
|
@@ -74970,8 +74973,8 @@ var c3_default9 = {
|
|
|
74970
74973
|
configure: configure3,
|
|
74971
74974
|
transformPackageJson: async () => ({
|
|
74972
74975
|
scripts: {
|
|
74973
|
-
deploy: `cloudflare && wrangler deploy`,
|
|
74974
|
-
preview: `cloudflare && wrangler dev`,
|
|
74976
|
+
deploy: `opennextjs-cloudflare && wrangler deploy`,
|
|
74977
|
+
preview: `opennextjs-cloudflare && wrangler dev`,
|
|
74975
74978
|
"cf-typegen": `wrangler types --env-interface CloudflareEnv env.d.ts`
|
|
74976
74979
|
}
|
|
74977
74980
|
}),
|
|
@@ -74991,7 +74994,7 @@ async function getWorkerdCompatibilityDate() {
|
|
|
74991
74994
|
const latestWorkerdVersion = await getLatestPackageVersion("workerd");
|
|
74992
74995
|
const match = latestWorkerdVersion.match(/\d+\.(\d{4})(\d{2})(\d{2})\.\d+/);
|
|
74993
74996
|
if (match) {
|
|
74994
|
-
const [, year, month, date] = match
|
|
74997
|
+
const [, year, month, date] = match;
|
|
74995
74998
|
const compatDate = `${year}-${month}-${date}`;
|
|
74996
74999
|
s.stop(`${brandColor("compatibility date")} ${dim(compatDate)}`);
|
|
74997
75000
|
return compatDate;
|
|
@@ -75333,7 +75336,7 @@ var config11 = {
|
|
|
75333
75336
|
configVersion: 1,
|
|
75334
75337
|
id: "solid",
|
|
75335
75338
|
frameworkCli: "create-solid",
|
|
75336
|
-
displayName: "
|
|
75339
|
+
displayName: "SolidStart",
|
|
75337
75340
|
platform: "workers",
|
|
75338
75341
|
copyFiles: {
|
|
75339
75342
|
path: "./templates"
|
|
@@ -76037,7 +76040,7 @@ var c3_default25 = {
|
|
|
76037
76040
|
id: "next",
|
|
76038
76041
|
frameworkCli: "create-next-app",
|
|
76039
76042
|
platform: "pages",
|
|
76040
|
-
displayName: "Next",
|
|
76043
|
+
displayName: "Next.js",
|
|
76041
76044
|
generate: generate19,
|
|
76042
76045
|
configure: configure13,
|
|
76043
76046
|
copyFiles: {
|
|
@@ -76683,7 +76686,7 @@ var config24 = {
|
|
|
76683
76686
|
configVersion: 1,
|
|
76684
76687
|
id: "solid",
|
|
76685
76688
|
frameworkCli: "create-solid",
|
|
76686
|
-
displayName: "
|
|
76689
|
+
displayName: "SolidStart",
|
|
76687
76690
|
platform: "pages",
|
|
76688
76691
|
copyFiles: {
|
|
76689
76692
|
path: "./templates"
|
|
@@ -76850,7 +76853,7 @@ var config26 = {
|
|
|
76850
76853
|
var c3_default36 = config26;
|
|
76851
76854
|
|
|
76852
76855
|
// ../wrangler/package.json
|
|
76853
|
-
var version2 = "3.
|
|
76856
|
+
var version2 = "3.101.0";
|
|
76854
76857
|
|
|
76855
76858
|
// src/git.ts
|
|
76856
76859
|
var offerGit = async (ctx) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.36.0",
|
|
4
4
|
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@babel/parser": "^7.21.3",
|
|
31
31
|
"@babel/types": "^7.21.4",
|
|
32
32
|
"@clack/prompts": "^0.6.3",
|
|
33
|
-
"@cloudflare/workers-types": "^4.
|
|
33
|
+
"@cloudflare/workers-types": "^4.20241230.0",
|
|
34
34
|
"@iarna/toml": "^3.0.0",
|
|
35
35
|
"@types/command-exists": "^1.2.0",
|
|
36
36
|
"@types/cross-spawn": "^6.0.2",
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"xdg-app-paths": "^8.3.0",
|
|
68
68
|
"yargs": "^17.7.2",
|
|
69
69
|
"@cloudflare/cli": "1.1.1",
|
|
70
|
-
"
|
|
70
|
+
"@cloudflare/eslint-config-worker": "1.1.0",
|
|
71
71
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
72
|
-
"
|
|
72
|
+
"wrangler": "3.101.0"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=18.14.1"
|
package/templates/next/c3.ts
CHANGED
package/templates/solid/c3.ts
CHANGED
|
@@ -18,7 +18,10 @@ const generate = async (ctx: C3Context) => {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const configure = async () => {
|
|
21
|
-
const packages = [
|
|
21
|
+
const packages = [
|
|
22
|
+
"@opennextjs/cloudflare@0.3.x",
|
|
23
|
+
"@cloudflare/workers-types",
|
|
24
|
+
];
|
|
22
25
|
await installPackages(packages, {
|
|
23
26
|
dev: true,
|
|
24
27
|
startText: "Adding the Cloudflare adapter",
|
|
@@ -35,7 +38,7 @@ export default {
|
|
|
35
38
|
// is not yet fully ready for Next.js 15, once it is we should remove the following
|
|
36
39
|
frameworkCliPinnedVersion: "14.2.5",
|
|
37
40
|
platform: "workers",
|
|
38
|
-
displayName: "Next (using Node.js compat + Workers Assets)",
|
|
41
|
+
displayName: "Next.js (using Node.js compat + Workers Assets)",
|
|
39
42
|
path: "templates-experimental/next",
|
|
40
43
|
copyFiles: {
|
|
41
44
|
path: "./templates",
|
|
@@ -44,8 +47,8 @@ export default {
|
|
|
44
47
|
configure,
|
|
45
48
|
transformPackageJson: async () => ({
|
|
46
49
|
scripts: {
|
|
47
|
-
deploy: `cloudflare && wrangler deploy`,
|
|
48
|
-
preview: `cloudflare && wrangler dev`,
|
|
50
|
+
deploy: `opennextjs-cloudflare && wrangler deploy`,
|
|
51
|
+
preview: `opennextjs-cloudflare && wrangler dev`,
|
|
49
52
|
"cf-typegen": `wrangler types --env-interface CloudflareEnv env.d.ts`,
|
|
50
53
|
},
|
|
51
54
|
}),
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import cache from "@opennextjs/cloudflare/kvCache";
|
|
2
|
+
|
|
3
|
+
const config = {
|
|
4
|
+
default: {
|
|
5
|
+
override: {
|
|
6
|
+
wrapper: "cloudflare-node",
|
|
7
|
+
converter: "edge",
|
|
8
|
+
incrementalCache: async () => cache,
|
|
9
|
+
tagCache: "dummy",
|
|
10
|
+
queue: "dummy",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
middleware: {
|
|
15
|
+
external: true,
|
|
16
|
+
override: {
|
|
17
|
+
wrapper: "cloudflare-edge",
|
|
18
|
+
converter: "edge",
|
|
19
|
+
proxyExternalRequest: "fetch",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
dangerous: {
|
|
24
|
+
enableCacheInterception: false,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#:schema node_modules/wrangler/config-schema.json
|
|
2
2
|
name = "<app-name>"
|
|
3
|
-
main = ".
|
|
3
|
+
main = ".open-next/worker.js"
|
|
4
4
|
|
|
5
5
|
compatibility_date = "2024-09-26"
|
|
6
6
|
compatibility_flags = ["nodejs_compat"]
|
|
@@ -9,4 +9,4 @@ compatibility_flags = ["nodejs_compat"]
|
|
|
9
9
|
minify = true
|
|
10
10
|
|
|
11
11
|
# Use the new Workers + Assets to host the static frontend files
|
|
12
|
-
assets = { directory = ".
|
|
12
|
+
assets = { directory = ".open-next/assets", binding = "ASSETS" }
|