node-server
node-server copied to clipboard
Node.js Server for Hono
``` curl -k -v -X TRACE http://localhost:8989 ``` crashes server with: ``` TypeError: 'TRACE' HTTP method is unsupported. at new Request (node:internal/deps/undici/undici:7245:19) at new Request (./node_modules/@hono/node-server/dist/index.js:55:5) ```
The following a "proxy pattern" is not working: ```ts import { serve } from '@hono/node-server' import { Hono } from 'hono' const app = new Hono() app.get('/proxy', async (c) =>...
Hello. I'm not sure if this is down to always annoying CJS/MJS issue(s), but when building my app through Docker, I get the following error, despite being able to build...
Whenever we include a payload to a request using `@hono/node-server/vercel`, Hono silently fails and just returns a `500` response. Here's a minimal repro: https://github.com/alexiglesias93/hono-vercel-bug/blob/master/api/index.ts Deployed: https://hono-vercel-bug.vercel.app/api NodeJS version in Vercel:...
Indeed, the Hono app, when using node-server, is slow. You can see the benchmarks here: https://github.com/SaltyAom/bun-http-framework-benchmark However, there are opportunities to improve performance, and we should do them.
When using the example Hono.Js code for [Server Streamed Events](https://hono.dev/helpers/streaming#streamsse) no events are displayed in Chrome DevTools' EventSteam viewer  Other stream types like streamText work correctly Reference: [Original PR](https://github.com/honojs/node-server/issues/27)
Currently, serveStatic's options.root doesn't support absolute paths. It appears that the getFilePath utility function isn't designed for this case. I've created a small wrapper to address this issue.
Related: https://github.com/honojs/hono/pull/2094 Waiting for Hono v4.
Hi, I've created a [discussion](https://github.com/orgs/honojs/discussions/1696) but it's worth adding it here as well. Essentially Node.js has its own [HTTP events](https://nodejs.org/docs/latest-v20.x/api/http.html) such as `close` | `error` | `finish` | `timeout` that...
If `c.env` is intended to be for uniform environment access then we need some way to provide values to `c.env` when using the node-server. I read issue #72, but the...