You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`bun run build`| Build for production with Astro + Jampack |
34
+
|`bun run build:raw`| Build for production without Jampack optimization |
35
+
|`bun run preview`| Preview the production build locally |
36
+
|`bun format`| Format code with Prettier |
37
+
|`bun run lint`| Lint code with ESLint |
38
+
|`bun run check`| Run Astro type checking |
39
+
|`bun run search:index`| Build the Pagefind search index |
40
+
|`bunx wrangler deploy --dry-run --outdir .wrangler-dry-run`| Validate the Cloudflare Worker bundle without deploying |
41
+
42
+
## Deployment
43
+
44
+
The site deploys as a static Astro build served by Cloudflare Workers static assets. The Worker only runs for `/api/*` routes, including the Microsoft ISO helper.
45
+
46
+
Required Cloudflare setup:
47
+
48
+
-`CLOUDFLARE_API_TOKEN` GitHub secret with Workers deploy access
49
+
-`CLOUDFLARE_ACCOUNT_ID` GitHub secret
50
+
-`BROWSER` Browser Rendering binding in `wrangler.jsonc`
51
+
-`MS_ISO_LINKS` KV namespace binding in `wrangler.jsonc`
52
+
53
+
The deploy workflow runs install, lint, Astro check, production build, Wrangler dry-run validation, then `wrangler deploy`.
0 commit comments