Commit afc094f
fix(cloudflare): migrate wrangler.toml to Workers + Assets format (#248)
## Problem
The "Workers Builds: boj-server" check has been failing because:
1. **`pages_build_output_dir`** is not recognised by the
post-Pages-merger Cloudflare Workers build system. It interprets the
project as a Workers script deployment and looks for a JS entry point.
2. **No `[build] command=""`** — the Git Integration attempts to install
every runtime listed in `.tool-versions` (Zig 0.15.1, Elixir 1.18.4,
Idris2 0.8.0, Deno 2.7.14) before a build step that doesn't exist, then
fails.
(The `pages-deploy.yml` GitHub Actions fallback was written to work
around exactly this problem, but the Cloudflare Git Integration check
itself kept showing red.)
## Fix
- `wrangler.toml`: replace deprecated `pages_build_output_dir = "site"`
with the current Workers static-assets syntax:
```toml
[assets]
directory = "site"
[build]
command = ""
```
- `.github/workflows/pages-deploy.yml`: update fallback deploy from
deprecated `wrangler pages deploy` to `wrangler deploy`, consistent with
the new Workers format.
## Test plan
- [ ] Cloudflare Git Integration build succeeds (no `.tool-versions`
install attempt, no missing-entry-point error)
- [ ] `pages-deploy.yml` GitHub Actions fallback still deploys `site/`
correctly on push to main
- [ ] `site/` content and `_headers`/`_redirects` are unaffected
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01F8pqMfJViUaKabWKNQ9wUg
---
_Generated by [Claude
Code](https://claude.ai/code/session_01F8pqMfJViUaKabWKNQ9wUg)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3077b4f commit afc094f
2 files changed
Lines changed: 21 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
4 | 10 | | |
5 | 11 | | |
6 | 12 | | |
7 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments