Skip to content

HA1: the API on Workers - #2

Merged
pullely merged 1 commit into
mainfrom
orun/HA-2-the-api-on-workers
Oct 14, 2026
Merged

pullely merged 1 commit into
mainfrom
orun/HA-2-the-api-on-workers

Conversation

@pullely

@pullely pullely commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

HA1 — the API on Workers. apps/api is Vercel's Hono boilerplate (src/index.ts as written, but for the second welcome line, which now points at Hono's Cloudflare Workers guide) with the Worker config around it: a committed wrangler.jsonc (hono-api-api, compatibility_date 2026-10-01, nodejs_compat, observability on, env.{dev,stage,prod} carrying only vars.ENVIRONMENT so the cloudflare-worker-turbo composition can deploy with --env), the shared worker tsconfig and eslint, and component.yaml. tests/api drives the app in-process with app.request() under vitest.

Verified locally: typecheck, lint, test (2 tests) and build (wrangler deploy --dry-run --outdir dist, 58 KiB / 15 KiB gzipped) green; wrangler deploy --dry-run --env prod — what the Orun verify lane runs — resolves ENVIRONMENT=prod; wrangler dev --port 8791 answers / with Hello Hono! and the new docs line (200, text/plain) and /nope with 404. Three departures from upstream, all recorded in IMPLEMENTATION-STATUS.md: the welcome line, the Worker tsconfig in place of the Node one, and @cloudflare/workers-types 5.x (wrangler 4.151.0's peer range).

🤖 Generated with Claude Code

apps/api is Vercel's Hono boilerplate as a plain Cloudflare Worker: the
upstream src/index.ts as written (the second welcome line now points at
Hono's Cloudflare Workers guide), a committed wrangler.jsonc with
env.{dev,stage,prod} sections so the cloudflare-worker-turbo composition
can deploy with --env, the shared worker tsconfig and eslint, and the
component. tests/api drives the app in-process with app.request() under
vitest: / is 200 and starts with "Hello Hono!", an unknown path is 404.

Three departures from upstream, all recorded in the epic: the welcome
line, the Worker tsconfig in place of the Node one, and
@cloudflare/workers-types 5.x (wrangler 4.151.0's peer range).

Orun-Task: HA-2
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@pullely
pullely merged commit 5a2ce50 into main Oct 14, 2026
3 checks passed
@pullely
pullely deleted the orun/HA-2-the-api-on-workers branch October 14, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants