We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e9835d commit 9d90a22Copy full SHA for 9d90a22
1 file changed
index.ts
@@ -5,7 +5,9 @@ const app = new Hono();
5
app.get("/", (c) => c.text("compute-e2e-happy: ok"));
6
app.get("/health", (c) => c.json({ ok: true }));
7
8
-export default {
9
- port: Number(process.env.PORT ?? 8080),
10
- fetch: app.fetch,
11
-};
+// Bind explicitly (like the build-runner's server.ts) so the server starts when
+// Compute runs this module — `export default { port, fetch }` only auto-serves
+// when Bun runs the file directly as the entrypoint, not through Compute's build.
+const port = Number(process.env.PORT ?? 8080);
12
+Bun.serve({ port, fetch: app.fetch });
13
+console.info(`compute-e2e-happy listening on :${port}`);
0 commit comments