Folo/.github/workflows
DIYgod 81c5b9f2e0
chore(infra): migrate desktop web to Cloudflare (#4869)
* chore(infra): migrate desktop web from Vercel to Cloudflare Workers

Replaces separate Vercel deployments (follow SPA + follow-external-ssr) with unified Cloudflare Workers + Assets deployment. Implements meta tag injection, OG image generation, and environment variable management in Hono-based Worker. Adds GitHub Actions CI/CD for automatic deployment on push to dev/main branches.

- Replace Fastify with Hono for Cloudflare Workers compatibility
- Create Worker entry point with SSR routes and SPA fallback
- Add AsyncLocalStorage-based request context shim
- Implement WASM-based OG image rendering with R2 font storage
- Split SPA and SSR routing: /share/* and auth routes use SSR, others fallback to SPA
- Add Cloudflare wrangler configuration with dev/prod environments
- Create GitHub Actions workflow for automated deployments
- Add build scripts for font data and WASM patching

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(ssr): exclude worker files from typecheck and fix tsdown config

Worker-specific files (*.worker.ts) use Cloudflare Workers types and
generated modules that aren't available during the main tsc typecheck.
Exclude them from tsconfig since they're only used via tsdown aliases.
Also fix broken path.resolve reference in tsdown.worker.config.ts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 20:58:17 +08:00
..
build-android.yml fix(ci): improve release workflow orchestration (#4866) 2026-02-21 10:59:07 +08:00
build-desktop.yml fix(ci): improve release workflow orchestration (#4866) 2026-02-21 10:59:07 +08:00
build-ios-development.yml build(deps): bump actions/upload-artifact from 5 to 6 (#4773) 2025-12-24 10:27:16 +08:00
build-ios.yml fix(ci): improve release workflow orchestration (#4866) 2026-02-21 10:59:07 +08:00
build-web.yml build(deps): bump actions/cache from 4 to 5 (#4772) 2025-12-24 10:27:27 +08:00
deploy-cloudflare.yml chore(infra): migrate desktop web to Cloudflare (#4869) 2026-02-22 20:58:17 +08:00
issue-labeler.yml build(deps): bump actions/checkout from 5 to 6 (#4747) 2025-11-24 14:32:28 +08:00
lint.yml build(deps): bump actions/cache from 4 to 5 (#4772) 2025-12-24 10:27:27 +08:00
pr-title-check.yml chore: update workflow names with emojis for better visibility 2025-07-24 18:15:43 +08:00
similar-issues.yml build(deps): bump actions/checkout from 5 to 6 (#4747) 2025-11-24 14:32:28 +08:00
sync.yaml fix(ci): improve release workflow orchestration (#4866) 2026-02-21 10:59:07 +08:00
tag.yml fix(ci): improve release workflow orchestration (#4866) 2026-02-21 10:59:07 +08:00
translator.yml build(deps): bump actions/checkout from 5 to 6 (#4747) 2025-11-24 14:32:28 +08:00