Launch offer: the first 1,000 users get Settl free for a year* Claim your spot
settlbuilding in public

Vercel + Hono gotchas: framework detection, Fluid Compute, monorepos

Vercel ran my code, built the response, and delivered it to absolutely no one. A legacy catch-all route (api/[...slug].ts) + handle() adapter pattern on Fluid Compute: the handler executed, the Response object was created (logs proved it), and Vercel never flushed it to the client. No error, no timeout log. A silent black hole. My CLAUDE.md now carries a do-not-regress warning in bold.

The gotcha list

  1. Don't wrap Hono in the legacy catch-all adapter. The old pattern (an api/[...slug].ts file calling handle(app)) silently hangs on Fluid Compute. Use the first-class framework integration: export the Hono app itself from your entry file.
// backend/index.ts: the whole Vercel integration
import { Hono } from 'hono';
const app = new Hono();
// ...routes...
export default app;   // Vercel's Hono integration handles the rest
  1. Declare the framework explicitly in monorepos. Auto-detection only reads the top-level package.json. My hono dependency lived one workspace level deep, so detection failed silently. One line fixes it:
// backend/vercel.json
{ "framework": "hono" }
  1. "Executed but never flushed" is a real failure class. If logs show your handler completing but clients hang until timeout, suspect the adapter/integration seam, not your code. Diagnose by isolating the wrapper: boot logging + a bare minimal route.
  2. Set the project root correctly. Monorepo: point the Vercel project at the backend directory (mine: root = backend), so builds, vercel.json, and detection all look at the right layer.
  3. Deploy config is code. Protect it from regressions. This bug is the kind an eager refactor (or an AI agent "cleaning up") reintroduces. I wrote the prohibition into the repo's CLAUDE.md in bold: do NOT regress to the api/[...slug].ts catch-all + handle() adapter: it silently hangs Fluid Compute. Lock hard-won config with a test if you can (I keep a smoke test that locks route mounting).
  4. Skip deploys that don't touch the backend. Bonus vercel.json win: an ignoreCommand that skips builds when only app/UI files changed cut my deploy churn ~70%.
  5. Smoke-test through the platform, not just locally. curl your deployed API's health endpoint after every infra-shaped change. My local dev server was fine the whole time; only the deployed path hung.

Steal this for your app

Run this on your codebase

Paste this into Claude Code in your repo:

Audit this repo for silent serverless adapter hangs on Vercel.
Find any api/[...slug].* catch-all that wraps a framework app with handle(); flag it if the project runs on Fluid Compute.
Check whether the framework entry file exports the app directly, the way the first-class integration expects.
If this is a monorepo, check whether the framework dependency sits below the top-level package.json and whether vercel.json declares "framework" explicitly.
Verify the Vercel project root points at the directory that owns vercel.json and the build.
Check for an ignoreCommand that skips deploys when only unrelated files change.
Confirm a post-deploy smoke test hits a health route through the platform, not just locally.
Report findings as a checklist before changing anything.

Get the next one in your inbox