Skip to content

Deploy the forum with Cloudflare Workers Builds - #3

Merged
fdb merged 6 commits into
mainfrom
claude/forum-app-cirr7p
Oct 14, 2026
Merged

fdb merged 6 commits into
mainfrom
claude/forum-app-cirr7p

Conversation

@fdb

@fdb fdb commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Before: deploying meant running wrangler by hand, and wrangler.jsonc held development values.

After: Cloudflare Workers Builds deploys every push to main. The build runs npm run ci:build (typecheck, tests, client bundle). The deploy runs npm run ci:deploy, which applies the D1 migrations and then runs wrangler deploy. A failing test stops the deploy. The forum starts on its workers.dev URL, and forum.nodebox.net gets added after the first deploy. On GitHub, the workflow only runs the tests on pull requests and holds no Cloudflare credentials.

How: the build is configured in the Cloudflare dashboard (root directory web plus the two commands above), and web/DEPLOY.md lists those settings.

  • .node-version pins Node 22.
  • wrangler.jsonc holds the production values and the production D1 id. npm run dev overrides MAILER and PUBLIC_URL.
  • npm run secrets pipes the Worker secrets from 1Password into wrangler.

🤖 Generated with Claude Code

https://claude.ai/code/session_01U7kh689sSJMCiynaNSHfVB

- .github/workflows/forum.yml tests every push and PR touching web/; on main
  it applies D1 migrations and runs wrangler deploy, only once the
  DEPLOY_ENABLED repository variable is true.
- wrangler.jsonc holds production values (forum.nodebox.net, real mail);
  npm run dev overrides MAILER and PUBLIC_URL.
- Import: the exporter now keys attachments on comment + path, so one file
  can appear on several comments; import it once. Test fixture updated.
- DEPLOY.md: one-time setup, first deploy, rollback.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U7kh689sSJMCiynaNSHfVB
Frederik prefers deploying from the Cloudflare side. Workers Builds runs
npm run ci:build (typecheck, tests, client) and npm run ci:deploy (D1
migrations, wrangler deploy). GitHub Actions keeps only the test job on PRs.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U7kh689sSJMCiynaNSHfVB
@fdb fdb changed the title Deploy the forum from GitHub Actions Deploy the forum with Cloudflare Workers Builds Oct 13, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U7kh689sSJMCiynaNSHfVB
…om 1Password

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U7kh689sSJMCiynaNSHfVB
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U7kh689sSJMCiynaNSHfVB
@fdb
fdb marked this pull request as ready for review October 13, 2026 13:21
Conflicts: take main's importer (one attachment per post) and its test
fixture, which replace this branch's dedupe; keep the Workers Builds deploy
notes and add ANTHROPIC_API_KEY to npm run secrets. AGENTS.md now points at
the Workers Builds deploy.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U7kh689sSJMCiynaNSHfVB
@fdb
fdb merged commit 209d5e6 into main Oct 14, 2026
1 check passed
@fdb
fdb deleted the claude/forum-app-cirr7p branch October 14, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants