serving static html with routing #4354
Replies: 1 comment
-
Here's what we ended up with
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm following the documentation for serveStatic and attempting to serve up a static site with routing (using react-router).
The following code works when I try and visit
http://localhost:8080/
and loads the html and static assets. However, trying to visithttp://localhost:8080/someroute
returns a 404. How can we serve up static files with routes from hono?Beta Was this translation helpful? Give feedback.
All reactions