Skip to content

Commit

Permalink
fix Bun.serve command for Hono (#6763)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Oct 2, 2023
1 parent 26fc3f0 commit 389f6c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion javascript/hono/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ app.get("/", (c) => c.text(""));
app.get("/user/:id", (c) => c.text(c.req.param("id")));
app.post("/user", (c) => c.text(""));

export default app;
Bun.serve({
fetch: app.fetch,
reusePort: true,
port: 3000
})

0 comments on commit 389f6c7

Please sign in to comment.