We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
serve static is not working, iam not using absolute path, minimal repro https://github.com/ibnumusyaffa/hono-serve-static-not-working
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Hi @ibnumusyaffa
Thank you for creating the issue.
You can do what you want to do with the following code:
app.get( "/static/*", serveStatic({ root: "./storage", rewriteRequestPath: (path: string) => path.replace(/^\/static/, ""), }) )
I would like to introduce onNotFound() because the current implementation of @hono/node-server is difficult to debug when a file is not found.
onNotFound()
@hono/node-server
onNotFound
This can be closed. Thanks!
No branches or pull requests
serve static is not working, iam not using absolute path, minimal repro https://github.com/ibnumusyaffa/hono-serve-static-not-working
The text was updated successfully, but these errors were encountered: