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
Every request first hits the static middleware which causes errors to show up on in the logs indicating that the specified files do not exist.
Is there a better way to use the static middleware with its own middleware as well so it only gets hit when the request matches the url passed to the .Serve function?
The text was updated successfully, but these errors were encountered:
Every request first hits the static middleware which causes errors to show up on in the logs indicating that the specified files do not exist.
Is there a better way to use the static middleware with its own middleware as well so it only gets hit when the request matches the url passed to the .Serve function?
I tested to see if the middleware gets hit on every request and it doesn't for this one. I tested it by wrapping the middleware with a handler function and put a logger. The logger only prints when no route was found :)
When using the middleware as
Every request first hits the static middleware which causes errors to show up on in the logs indicating that the specified files do not exist.
Is there a better way to use the static middleware with its own middleware as well so it only gets hit when the request matches the url passed to the
.Serve
function?The text was updated successfully, but these errors were encountered: