diff options
Diffstat (limited to 'examples/hono/src/index.ts')
-rw-r--r-- | examples/hono/src/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/hono/src/index.ts b/examples/hono/src/index.ts index 2bc0be21c..145bd5db0 100644 --- a/examples/hono/src/index.ts +++ b/examples/hono/src/index.ts @@ -2,7 +2,7 @@ import { Hono } from "hono"; const app = new Hono(); -const port = process.env.PORT || 3000; +const port = parseInt(process.env.PORT) || 3000; const home = app.get("/", (c) => { return c.json({ message: "Hello World!" }); @@ -11,6 +11,6 @@ const home = app.get("/", (c) => { console.log(`Running at http://localhost:${port}`); export default { - port: process.env.PORT || 3000, + port, fetch: home.fetch, }; |