Folo/.github
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
..
ISSUE_TEMPLATE chore: simplify description for Entry ID field in bug report template 2025-06-29 10:22:07 +08:00
actions fix: update default Xcode version to 26.0.1 2025-10-21 16:40:10 +08:00
prompts fix: refine issue similarity prompt to exclude current issue ID 2025-09-20 15:57:08 +08:00
scripts ci: automate release orchestration for desktop and mobile (#4861) 2026-02-19 16:42:39 +08:00
workflows chore(infra): migrate desktop web to Cloudflare (#4869) 2026-02-22 20:58:17 +08:00
PULL_REQUEST_TEMPLATE.md chore: update pr template 2025-01-14 19:45:26 +08:00
advanced-issue-labeler.yml chore: issue labeler 2025-03-18 22:28:45 +08:00
copilot-instructions.md feat(ai): support ai attachement (#4316) 2025-08-08 16:32:52 +08:00
dependabot.yaml refactor: migrate to client sdk (#4480) 2025-09-17 00:12:54 +08:00