Skip to content

Consider using serveStatic base implementation #203

@exoego

Description

@exoego

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions