From 9b556ffe6c0c0528697e15f7f4f35107de212ce1 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Wed, 15 Jul 2026 02:08:17 -0400 Subject: Add Cloudflare Workers deployment target Split routes into a shared createApp() (src/app.ts) used by both the Node entry (src/index.ts) and a new Workers entry (src/worker.ts). Workers disallow runtime code generation, so scripts/compile-views.ts precompiles the Eta templates into src/views.generated.ts and rendering switches from renderAsync to the sync render. Static files move to public/static so Workers Static Assets can serve them; the Node build and serveStatic root are updated to match. Deploy with pnpm run deploy:cf, local dev with pnpm run dev:cf. Co-Authored-By: Claude Fable 5 --- cgithub/.gitignore | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cgithub/.gitignore') diff --git a/cgithub/.gitignore b/cgithub/.gitignore index 3d2bc62..e502860 100644 --- a/cgithub/.gitignore +++ b/cgithub/.gitignore @@ -1,2 +1,4 @@ /dist/ /node_modules/ +/.wrangler/ +/src/views.generated.ts -- cgit v1.3.1