Repository navigation
HA1: the API on Workers - #2
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HA1 — the API on Workers.
apps/apiis Vercel's Hono boilerplate (src/index.tsas written, but for the second welcome line, which now points at Hono's Cloudflare Workers guide) with the Worker config around it: a committedwrangler.jsonc(hono-api-api,compatibility_date2026-10-01,nodejs_compat, observability on,env.{dev,stage,prod}carrying onlyvars.ENVIRONMENTso thecloudflare-worker-turbocomposition can deploy with--env), the shared worker tsconfig and eslint, andcomponent.yaml.tests/apidrives the app in-process withapp.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 — resolvesENVIRONMENT=prod;wrangler dev --port 8791answers/withHello Hono!and the new docs line (200,text/plain) and/nopewith 404. Three departures from upstream, all recorded inIMPLEMENTATION-STATUS.md: the welcome line, the Worker tsconfig in place of the Node one, and@cloudflare/workers-types5.x (wrangler 4.151.0's peer range).🤖 Generated with Claude Code