Skip to content

Use serveStatic to serve node_module files #3519

Closed Answered by danhstevens
danhstevens asked this question in Q&A
Discussion options

You must be logged in to vote

I got it figured out - my issue was Vite was taking over some of the routing. Running hono w/o vite along with something like app.use('/inter-ui/inter.css', serveStatic({ root: './node_modules/' })); works just fine,

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by danhstevens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant