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
Adding fallthrough: true option to serveStatic does not pass the request to the next event handler/middleware and returns false which h3 interprets as json.
I think I identified the offending code in src/utils/static.ts, removing it fixes the problem but I don't know if it breaks anything else yet.
on line 24: return false should be return or return undefined
same thing on line 65
Environment
Reproduction
Describe the bug
Adding
fallthrough: true
option to serveStatic does not pass the request to the next event handler/middleware and returnsfalse
which h3 interprets as json.I think I identified the offending code in
src/utils/static.ts
, removing it fixes the problem but I don't know if it breaks anything else yet.on line 24:
return false
should bereturn
orreturn undefined
same thing on line 65
Refer to the registering event handlers section in the app instance docs.
I can submit a PR with a test and the fix if needed.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: