You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since I moved the public folder outside src, I want to ensure my Hono app (running with Bun) can still serve static files from it properly.
My Questions:
How can I configure Hono with Bun to serve static files from public while keeping my routes functional?
Do I need to adjust the serveStatic middleware in Hono or change how Bun handles file serving?
What’s the recommended way to handle this in a Bun + Hono setup?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I’m working on a Hono project using Bun, and my current file structure is:
Since I moved the public folder outside src, I want to ensure my Hono app (running with Bun) can still serve static files from it properly.
My Questions:
How can I configure Hono with Bun to serve static files from public while keeping my routes functional?
Do I need to adjust the serveStatic middleware in Hono or change how Bun handles file serving?
What’s the recommended way to handle this in a Bun + Hono setup?
Beta Was this translation helpful? Give feedback.
All reactions