create-astroid 0.9.0 → 0.9.2
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 +4 -4
- package/template/docs/RUNBOOK.md +17 -1
- package/template/src/env.d.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astroid",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Scaffold a new Astroid site — an editable, multi-editor Astro app on Cloudflare Workers — in one command.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astro",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@better-auth/passkey": "^1.7.2",
|
|
35
|
-
"@louise-toolkit/astro": "^0.
|
|
36
|
-
"astroidjs": "0.
|
|
35
|
+
"@louise-toolkit/astro": "^0.5.0",
|
|
36
|
+
"astroidjs": "0.18.0",
|
|
37
37
|
"better-auth": "^1.7.2",
|
|
38
|
-
"louise-toolkit": "^0.
|
|
38
|
+
"louise-toolkit": "^0.36.0"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=26.0.0"
|
package/template/docs/RUNBOOK.md
CHANGED
|
@@ -31,7 +31,10 @@ edit mode.
|
|
|
31
31
|
|
|
32
32
|
`pnpm exec astroid provision` creates every resource `wrangler.jsonc` still
|
|
33
33
|
names by placeholder and fills in its ID. It asks first; `--dry-run` shows the
|
|
34
|
-
plan.
|
|
34
|
+
plan. When the `previews` block binds them, it also creates staging's
|
|
35
|
+
`SESSION_SECRET` (a new random value) and `TURNSTILE_SECRET` (Turnstile's test
|
|
36
|
+
secret, which always passes), and skips any that exist. It prints the other
|
|
37
|
+
secrets for you to set. By hand, the resources are:
|
|
35
38
|
|
|
36
39
|
```sh
|
|
37
40
|
wrangler d1 create __KEY__
|
|
@@ -53,6 +56,19 @@ wrangler deploy
|
|
|
53
56
|
<!-- Who deploys, from where, and what gates it? If deploys are automatic on push
|
|
54
57
|
to main, say so here—that is the first thing a new person asks. -->
|
|
55
58
|
|
|
59
|
+
## Is it up?
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
curl -i https://<your-host>/api/louise/status
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
200 means D1 answers and the home page has content; 503 names the check that
|
|
66
|
+
failed, as a boolean, in the JSON body. Point an uptime monitor at this URL.
|
|
67
|
+
Add your own checks in `src/status-checks.ts` (turn it on with
|
|
68
|
+
`status: { checks: true }` in `astroid.config.ts`).
|
|
69
|
+
|
|
70
|
+
<!-- Which monitor watches this URL, and who it alerts. -->
|
|
71
|
+
|
|
56
72
|
## D1 migrations
|
|
57
73
|
|
|
58
74
|
```sh
|
package/template/src/env.d.ts
CHANGED
|
@@ -17,6 +17,9 @@ type CloudflareEnv = {
|
|
|
17
17
|
* health scan to know what to crawl, and by anything else that needs an
|
|
18
18
|
* absolute URL from inside the Worker. */
|
|
19
19
|
SITE_URL: string;
|
|
20
|
+
/** AI Gateway id for the editor's AI assists—declared in wrangler.jsonc
|
|
21
|
+
* `vars`. Empty calls Workers AI directly (see `astroidAiGateway`). */
|
|
22
|
+
AI_GATEWAY_ID?: string;
|
|
20
23
|
/**
|
|
21
24
|
* Edge caching for published pages — `"true"` to enable (ADR 0004). A string,
|
|
22
25
|
* not a boolean, because wrangler `vars` are strings.
|