From caeb6faf049bcf479f70e4caf89dad87775bf113 Mon Sep 17 00:00:00 2001 From: Peter Wielander Date: Wed, 6 May 2026 13:06:01 +0900 Subject: [PATCH] fix(hono): point start script at the actual nitro build output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nitro emits the production server to `.output/server/index.mjs`, but `pnpm start` was running `node dist/index.js`, which doesn't exist: Error: Cannot find module '/Users/.../hono/dist/index.js' Use the path nitro actually writes. Verified locally with the latest v2-flow tarballs — `pnpm build && pnpm start` now serves on port 3000 and `POST /api/signup` runs the workflow end-to-end (`Started run …`, `Creating user …`, `Sending welcome email …`). Co-Authored-By: Claude Opus 4.7 (1M context) --- hono/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hono/package.json b/hono/package.json index a06f1a5..6a9cb15 100644 --- a/hono/package.json +++ b/hono/package.json @@ -4,7 +4,7 @@ "scripts": { "dev": "nitro dev", "build": "nitro build", - "start": "node dist/index.js" + "start": "node .output/server/index.mjs" }, "dependencies": { "@hono/node-server": "^1.19.6",