fix(cloudflare): migrate wrangler.toml to Workers + Assets format#248
Merged
Conversation
…ntegration build
The Cloudflare Git Integration ('Workers Builds: boj-server') was failing
because:
1. `pages_build_output_dir` is not recognised by the post-Pages-merger
Workers build system — it treats the project as a Workers script
deployment and expects a JS entry point.
2. With no explicit `[build] command=""`, the Git Integration attempts to
install every runtime listed in `.tool-versions` (Zig, Elixir, Idris2,
Deno) before running a build that doesn't exist, and fails.
Fixes:
- Replace `pages_build_output_dir = "site"` with `[assets] directory =
"site"` — the current Workers static-asset syntax.
- Add `[build] command = ""` — tells the Git Integration there is no build
step, suppressing .tool-versions installation.
- Update pages-deploy.yml fallback from deprecated `wrangler pages deploy`
to `wrangler deploy`, consistent with the new Workers format.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F8pqMfJViUaKabWKNQ9wUg
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
boj-server | a06d6d3 | Jun 24 2026, 04:13 PM |
🔍 Hypatia Security ScanFindings: 218 issues detected
View findings[
{
"reason": "Action actions/checkout@v4 needs attention",
"type": "unpinned_action",
"file": "pages-deploy.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in pages-deploy.yml",
"type": "missing_timeout_minutes",
"file": "pages-deploy.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in scorecard-enforcer.yml",
"type": "missing_timeout_minutes",
"file": "scorecard-enforcer.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in scorecard-enforcer.yml",
"type": "scorecard_publish_with_run_step",
"file": "scorecard-enforcer.yml",
"action": "split_scorecard_publish_job",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Issue in instant-sync.yml",
"type": "secret_action_without_presence_gate",
"file": "instant-sync.yml",
"action": "peter-evans/repository-dispatch",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Issue in codeql.yml",
"type": "codeql_missing_actions_language",
"file": "codeql.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "TypeScript file detected -- banned language",
"type": "banned_language_file",
"file": "/home/runner/work/boj-server/boj-server/cartridges/academic-workflow-mcp/adapter/mod.ts",
"action": "flag",
"rule_module": "cicd_rules",
"severity": "critical"
},
{
"reason": "TypeScript file detected -- banned language",
"type": "banned_language_file",
"file": "/home/runner/work/boj-server/boj-server/cartridges/ephapax-mcp/adapter/mod.ts",
"action": "flag",
"rule_module": "cicd_rules",
"severity": "critical"
},
{
"reason": "TypeScript file detected -- banned language",
"type": "banned_language_file",
"file": "/home/runner/work/boj-server/boj-server/cartridges/bofig-mcp/adapter/mod.ts",
"action": "flag",
"rule_module": "cicd_rules",
"severity": "critical"
},
{
"reason": "TypeScript file detected -- banned language",
"type": "banned_language_file",
"file": "/home/runner/work/boj-server/boj-server/cartridges/fireflag-mcp/adapter/mod.ts",
"action": "flag",
"rule_module": "cicd_rules",
"severity": "critical"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The "Workers Builds: boj-server" check has been failing because:
pages_build_output_diris 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.[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.ymlGitHub Actions fallback was written to work around exactly this problem, but the Cloudflare Git Integration check itself kept showing red.)Fix
wrangler.toml: replace deprecatedpages_build_output_dir = "site"with the current Workers static-assets syntax:.github/workflows/pages-deploy.yml: update fallback deploy from deprecatedwrangler pages deploytowrangler deploy, consistent with the new Workers format.Test plan
.tool-versionsinstall attempt, no missing-entry-point error)pages-deploy.ymlGitHub Actions fallback still deployssite/correctly on push to mainsite/content and_headers/_redirectsare unaffected🤖 Generated with Claude Code
https://claude.ai/code/session_01F8pqMfJViUaKabWKNQ9wUg
Generated by Claude Code