-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Dockerfile and configs to use pnpm v9 and change the output f…
…ile structure
- Loading branch information
1 parent
527ed5c
commit ba2c2db
Showing
5 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
dist/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { type HttpBindings, serve } from "@hono/node-server"; | ||
import { Hono } from "hono"; | ||
|
||
const app = new Hono<{ Bindings: HttpBindings }>(); | ||
|
||
app.get("/", (c) => { | ||
const resp = c.text("Hono meets Node.js"); | ||
console.log(`${c.env.incoming.method} ${c.env.incoming.url}`); | ||
return resp; | ||
}); | ||
|
||
serve({ fetch: app.fetch, port: 5888 }, (info) => { | ||
console.log(`Listening on http://localhost:${info.port}`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters