Skip to content

Merge Cloudflare Workers platform branch - #4

Merged
devandrepascoa merged 5 commits into
mainfrom
cloudflare-workers
Oct 12, 2026
Merged

devandrepascoa merged 5 commits into
mainfrom
cloudflare-workers

Conversation

@devandrepascoa

Copy link
Copy Markdown
Owner

Promote the Cloudflare Workers port and secure Worker Preview Access configuration from cloudflare-workers to main.

…, Workflows)

Experimental, AI-assisted port of SplitPro to Cloudflare Workers.
Replaces Next.js/Node, Postgres/Prisma, next-auth, nodemailer and pg_cron with
vinext, D1 + Drizzle, better-auth (Google), the Email Sending binding and a
scheduled Workflow. Adds unsampled Workers observability and error logging for
the Worker, tRPC and the browser. No automated tests yet.
- tests/e2e: sign-in redirect, signed-in session, groups/expenses/settle-up,
  stranger blocked, recurring expense, run against the built Worker in parallel
- src/tests/integration: authorization, balances, expense atomicity, settlements,
  recurrence idempotency, D1 query regressions (vitest + @cloudflare/vitest-plugin)
- .github/workflows/ci.yml: typecheck, integration, e2e in parallel with caching
- replace Jest with Vitest; scenarios adapted from upstream PR oss-apps#738

Bugs found by the tests and fixed here:
- any signed-in user could read, edit or delete any expense by id, and write to any group
- runRecurringJob used db.run() inside a D1 batch, so recurring expenses never ran
Add e2e + D1 integration tests, CI, and fix two bugs they found
@devandrepascoa
devandrepascoa merged commit 8abaede into main Oct 12, 2026
6 checks passed
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.

1 participant