Skip to content

Deploy the forum with Cloudflare Workers Builds - #3

Open
fdb wants to merge 5 commits into
mainfrom
claude/forum-app-cirr7p
Open

fdb wants to merge 5 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. wrangler.jsonc held development values. The import tests failed on main against the exporter's new attachments schema.

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 D1 migrations and then wrangler deploy, to forum.nodebox.net. A failing test stops the 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, the two commands above), and web/DEPLOY.md lists those settings. .node-version pins Node 22. wrangler.jsonc holds the production values, and npm run dev overrides MAILER and PUBLIC_URL. The importer imports a file that hangs on several comments only once, because the exporter now keys attachments on comment plus path.

🤖 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
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