Hono
Hono 4 on Node, served by @hono/node-server 2, tested in CI. Your server’s code does not change:
follow Setup to install the package, profile the Prisma client and add the
preload. On Bun, Deno or Cloudflare Workers there is no Node server to profile: not supported.
The dev command
Section titled “The dev command”{ "scripts": { "dev": "tsx watch --import query-profiler/register src/index.ts", "start": "node dist/index.js" }}In plain JavaScript, node --watch --import query-profiler/register src/index.js. Other watchers
are in Setup.
With Hono’s cors() middleware, a page on another
origin can read X-Debug-Token: the preload exposes it. If you set exposeHeaders, your list
replaces it, so add the token there:
app.use(cors({ origin: "http://localhost:5173", exposeHeaders: ["X-Debug-Token"] }));In production no response carries it, so the extra name does nothing.