From fb16dc2b017e339e6a36a89c9b5d8a830ce3a541 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 --- static/icons/eye.svg | 1 - static/icons/file.svg | 1 - static/icons/folder-simple.svg | 1 - static/icons/git-branch.svg | 1 - static/icons/git-fork.svg | 1 - static/icons/link.svg | 1 - static/icons/star.svg | 1 - 7 files changed, 7 deletions(-) delete mode 100644 static/icons/eye.svg delete mode 100644 static/icons/file.svg delete mode 100644 static/icons/folder-simple.svg delete mode 100644 static/icons/git-branch.svg delete mode 100644 static/icons/git-fork.svg delete mode 100644 static/icons/link.svg delete mode 100644 static/icons/star.svg (limited to 'static/icons') diff --git a/static/icons/eye.svg b/static/icons/eye.svg deleted file mode 100644 index f6f8230..0000000 --- a/static/icons/eye.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/icons/file.svg b/static/icons/file.svg deleted file mode 100644 index f2e7629..0000000 --- a/static/icons/file.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/icons/folder-simple.svg b/static/icons/folder-simple.svg deleted file mode 100644 index 36acab2..0000000 --- a/static/icons/folder-simple.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/icons/git-branch.svg b/static/icons/git-branch.svg deleted file mode 100644 index 4b442e2..0000000 --- a/static/icons/git-branch.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/icons/git-fork.svg b/static/icons/git-fork.svg deleted file mode 100644 index ca318b2..0000000 --- a/static/icons/git-fork.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/icons/link.svg b/static/icons/link.svg deleted file mode 100644 index 25ffe17..0000000 --- a/static/icons/link.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/icons/star.svg b/static/icons/star.svg deleted file mode 100644 index 4e640f4..0000000 --- a/static/icons/star.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file -- cgit v1.3.1