Skip to content

Commit 824d843

Browse files
committed
fix: bind Hono's framework-led port 3000 so the deployed app is reachable
1 parent 7d428f1 commit 824d843

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const app = new Hono();
66
app.get("/", (c) => c.text("compute-e2e-happy: ok"));
77
app.get("/health", (c) => c.json({ ok: true }));
88

9-
// Serve over node:http so it binds regardless of whether Compute runs the app
10-
// under Node or Bun (Bun.serve / the default-export form only bind under Bun).
11-
const port = Number(process.env.PORT ?? 8080);
9+
// Compute's framework-led port mapping routes Hono apps to 3000; bind there so
10+
// the deployed app is reachable (PORT is not injected on the customer-app path).
11+
const port = Number(process.env.PORT ?? 3000);
1212
serve({ fetch: app.fetch, port });
1313
console.info(`compute-e2e-happy listening on :${port}`);

0 commit comments

Comments
 (0)