-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Consider using serveStatic base implementation #203
Comments
Hi @exoego I also think this is great to use the |
Hmmm. BUT, the |
From a contributor perspective, it is much simpler if Node.js adapter is in Hono main repo.
Sorry in advance, if that was already considered and abandoned before. |
Thank you for sharing your opinion! I can understand it well. We/I have some reasons and the historical stuff. I'll explain later. |
Added the issue related to this discussion honojs/hono#3483 Please take a look at it! |
node-server implements its own
serverStatic
middleware.https://github.com/honojs/node-server/blob/74e86a28f375e5acd52e342519ff2b1110a95c16/src/serve-static.ts
However,
serveStatic
base implementation is provided in Hono main repo:https://github.com/honojs/hono/blob/c0d782cd649525ce40489906a24d83607deede29/src/middleware/serve-static/index.ts
The base implementation is used by Bun adapter Deno adapter, which drastically eases implementing new feature like honojs/hono#3461
It is great if node-server also uses the base implementation.
The text was updated successfully, but these errors were encountered: