10 Commits
Author SHA1 Message Date
DIYgodandClaude Opus 5.5 5559b7c09a build: deploy the Cloudflare Workers with cf instead of Wrangler
Migrate folo-web (apps/desktop), landing-vinext (apps/landing), folo-ota
(apps/ota) and folo-ssr (apps/ssr) with `cf migrate` and finish the
follow-up work from the cf migration guide.

- cloudflare.config.ts now configures each Worker, and the Wrangler `dev`
  environment is the `dev` mode (`--mode dev`). Worker names, routes and
  zone, custom domain, bindings and resource IDs, cron trigger,
  compatibility date and flags, placement, limits, observability,
  workers.dev and assets settings are unchanged. Build settings moved to
  wrangler.config.ts (Wrangler bundler) and vite.config.ts (landing).
- landing-next-dev keeps the IMAGES binding it is deployed with today:
  CI deployed the top-level landing config with only the name and route
  overridden.
- CI builds each Worker with cf (landing still builds with vinext), then
  deploys that Build Output with `cf deploy --prebuilt` and the matching
  mode. Triggers, build steps and secrets are unchanged, and only the
  deploy steps receive the API token. turbo now caches landing's Build
  Output.
- Package scripts call cf. The landing deploy scripts used `vinext
  deploy`, which vinext no longer has.
- cf only looks for its build tool in the Worker package's own
  node_modules, while this workspace hoists every dependency to the
  root, so a postinstall step links the hoisted Wrangler or Vite plugin
  into each Worker app.
- The Vite plugin beta writes the client build into cf's Build Output,
  so landing drops the unused `output: 'standalone'` step that read
  dist/client. Worker source maps stay off, as they were with Wrangler.
- The KV preview_id has no cf equivalent; `cf dev` uses local data.
- wrangler.jsonc stays for `wrangler tail` and as a fallback until the
  Workers have been deployed to production with cf.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 22:38:53 +08:00
DIYgodandClaude Opus 5.5 c6518bd015 chore(deps): add cf and the Cloudflare Vite plugin beta to the Worker apps
Prepare the four Cloudflare Workers for the move from Wrangler to cf:

- Add cf 1.0.0-beta.20 as a dev dependency of desktop, landing, ota and
  ssr, so every machine and CI run the same cf release.
- Declare wrangler 4.136.1 in desktop. cf builds the assets-only folo-web
  Worker with the Wrangler that the package itself declares.
- Move landing to @cloudflare/vite-plugin 2.0.0-beta.v.3, the plugin
  release that reads cloudflare.config.ts and writes cf Build Output.

The lockfile only gains the entries these packages need; the rest of it
is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 21:48:25 +08:00
DIYgod 2f392594d5 chore(deps): refresh dependencies and verify affected app flows 2026-09-22 16:20:40 +08:00
DIYgod 1158281f59 chore(deps): update frontend dependencies (#5038)
* chore(deps): update frontend dependencies

* fix(ci): format OTA verification commands
2026-07-10 22:36:12 +08:00
DIYgod f9dd5a83ee feat(ota): add GitHub release-based OTA delivery 2026-04-11 10:07:03 +08:00
DIYgod f176051cd0 fix(ota): stream mirrored archive extraction 2026-04-10 19:41:48 +08:00
DIYgod 8a06a0f821 feat(ota): mirror release payloads into R2 2026-04-10 19:30:29 +08:00
DIYgod ee2831deca fix(ota): use dev env for local wrangler 2026-04-10 18:45:46 +08:00
DIYgod 03945a5765 fix(ota): align scaffold with task spec 2026-04-10 18:26:05 +08:00
DIYgod 6430561dc1 feat(ota): scaffold Cloudflare worker app 2026-04-10 18:18:38 +08:00