@cloudhal/cli 0.3.1 → 0.3.3
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.
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
"astro": "astro"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@cloudhal/astro-renderer": "0.3.
|
|
18
|
-
"@cloudhal/core-ts": "0.3.
|
|
17
|
+
"@cloudhal/astro-renderer": "0.3.3",
|
|
18
|
+
"@cloudhal/core-ts": "0.3.3",
|
|
19
19
|
"@tailwindcss/vite": "^4.3.3",
|
|
20
20
|
"astro": "7.3.6",
|
|
21
21
|
"better-sqlite3": "13.0.3",
|
|
22
22
|
"tailwindcss": "^4.3.3",
|
|
23
23
|
"@astrojs/cloudflare": "14.3.4",
|
|
24
|
-
"@cloudhal/cli": "0.3.
|
|
24
|
+
"@cloudhal/cli": "0.3.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"wrangler": "^4.148.0",
|
|
28
|
-
"@cloudhal/cloudflare": "0.3.
|
|
28
|
+
"@cloudhal/cloudflare": "0.3.3"
|
|
29
29
|
},
|
|
30
30
|
"trustedDependencies": [
|
|
31
31
|
"better-sqlite3",
|
|
@@ -70,7 +70,17 @@ export function wranglerRunner(
|
|
|
70
70
|
return async (args, { cwd, quiet }) => {
|
|
71
71
|
const dir = await mkdtemp(path.join(os.tmpdir(), "cloudhal-wrangler-"));
|
|
72
72
|
const outputFile = path.join(dir, "output.ndjson");
|
|
73
|
-
|
|
73
|
+
// Workers Builds sets WRANGLER_CI_OVERRIDE_NAME (and WRANGLER_CI_MATCH_TAG) to the one Worker
|
|
74
|
+
// the build is connected to; wrangler then deploys every config under that name. `cloudhal
|
|
75
|
+
// deploy` names each Worker itself (the site keeps the connected name), so the admin Worker
|
|
76
|
+
// would otherwise overwrite the site. Seen on the first Deploy to Cloudflare button run.
|
|
77
|
+
const {
|
|
78
|
+
VITEST: _v,
|
|
79
|
+
NODE_ENV: _n,
|
|
80
|
+
WRANGLER_CI_OVERRIDE_NAME: _ciName,
|
|
81
|
+
WRANGLER_CI_MATCH_TAG: _ciTag,
|
|
82
|
+
...env
|
|
83
|
+
} = process.env;
|
|
74
84
|
try {
|
|
75
85
|
const result = await new Promise (
|
|
76
86
|
(resolve) => {
|
|
@@ -142,5 +142,7 @@ export function setupInstructions(adminUrl , adminWorker )
|
|
|
142
142
|
" edit CLOUDHAL_SETUP_TOKEN and set a random value of your own (32 characters or more),",
|
|
143
143
|
` or run \`npx wrangler secret put CLOUDHAL_SETUP_TOKEN --name ${adminWorker}\``,
|
|
144
144
|
` 2. open ${login}<that value>`,
|
|
145
|
+
"Do not edit CLOUDHAL_DEPLOY_TOKEN: every build replaces it, and a changed value switches off",
|
|
146
|
+
"the deploy endpoints (/api/admin). The owner account only needs CLOUDHAL_SETUP_TOKEN.",
|
|
145
147
|
].join("\n");
|
|
146
148
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudhal/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "cloudhal — create, run and build Cloudhal sites locally",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://cloudhal.dev",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@cloudhal/agent-runtime": "0.3.
|
|
31
|
-
"@cloudhal/analytics": "0.3.
|
|
32
|
-
"@cloudhal/api": "0.3.
|
|
33
|
-
"@cloudhal/cloudflare": "0.3.
|
|
34
|
-
"@cloudhal/comments": "0.3.
|
|
35
|
-
"@cloudhal/core-contracts": "0.3.
|
|
36
|
-
"@cloudhal/core-ts": "0.3.
|
|
37
|
-
"@cloudhal/mcp-server": "0.3.
|
|
38
|
-
"@cloudhal/schedules": "0.3.
|
|
39
|
-
"@cloudhal/storage": "0.3.
|
|
30
|
+
"@cloudhal/agent-runtime": "0.3.3",
|
|
31
|
+
"@cloudhal/analytics": "0.3.3",
|
|
32
|
+
"@cloudhal/api": "0.3.3",
|
|
33
|
+
"@cloudhal/cloudflare": "0.3.3",
|
|
34
|
+
"@cloudhal/comments": "0.3.3",
|
|
35
|
+
"@cloudhal/core-contracts": "0.3.3",
|
|
36
|
+
"@cloudhal/core-ts": "0.3.3",
|
|
37
|
+
"@cloudhal/mcp-server": "0.3.3",
|
|
38
|
+
"@cloudhal/schedules": "0.3.3",
|
|
39
|
+
"@cloudhal/storage": "0.3.3",
|
|
40
40
|
"@hono/node-server": "^2.1.4",
|
|
41
41
|
"better-sqlite3": "13.0.3"
|
|
42
42
|
},
|